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

15
debian/systemd/edge.service vendored Normal file
View file

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