mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 02:12:49 +00:00
24 lines
373 B
SYSTEMD
24 lines
373 B
SYSTEMD
|
# myNode VPN Service
|
||
|
# /etc/systemd/system/vpn.service
|
||
|
|
||
|
[Unit]
|
||
|
Description=myNode VPN
|
||
|
Wants=mynode.service
|
||
|
After=mynode.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
KillMode=control-group
|
||
|
TimeoutSec=60
|
||
|
Restart=always
|
||
|
RestartSec=30
|
||
|
ExecStart=/usr/bin/mynode_vpn.sh
|
||
|
User=root
|
||
|
Group=root
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=vpn
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|