Add n2n systemd units

This commit is contained in:
billchenchina 2022-11-20 03:40:55 +08:00
parent 89d72211ec
commit 66fb3372ba
5 changed files with 67 additions and 0 deletions

16
debian/systemd/edge-ntopng@.service vendored Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=n2n edge process, on %I
After=network-online.target
Wants=network-online.target
BindsTo=ntopng.service
[Service]
Type=simple
ExecStartPre=
ExecStart=/usr/sbin/edge /etc/n2n/edge-%i.conf -f
Restart=on-abnormal
RestartSec=5
[Install]
WantedBy=ntopng.service
Alias=