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/supernode.service vendored Normal file
View file

@ -0,0 +1,16 @@
[Unit]
Description=n2n supernode process
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=n2n
Group=n2n
ExecStart=/usr/sbin/supernode /etc/n2n/supernode.conf -f
Restart=on-abnormal
RestartSec=5
[Install]
WantedBy=multi-user.target
Alias=