mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ysfparrot.service
This commit is contained in:
parent
83f0cf4ca1
commit
84b2c32185
|
|
@ -3,20 +3,16 @@ Description=YSF Parrot Service
|
||||||
# Description=Place this file in /lib/systemd/system
|
# Description=Place this file in /lib/systemd/system
|
||||||
# Description=N4IRS 04/30/2020
|
# Description=N4IRS 04/30/2020
|
||||||
|
|
||||||
#After=netcheck.service
|
|
||||||
#Requires=netcheck.service
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
User=root
|
||||||
Type=simple
|
Type=simple
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
WorkingDirectory=/opt/YSFParrot
|
WorkingDirectory=/opt/YSFParrot
|
||||||
#ExecStartPre = /bin/sh -c 'echo "Starting YSFParrot: [`date +%%T.%%3N`]" >> /var/log/netcheck'
|
|
||||||
ExecStartPre=/bin/sh -c 'until ping -c1 noip.com; do sleep 1; done;'
|
ExecStartPre=/bin/sh -c 'until ping -c1 noip.com; do sleep 1; done;'
|
||||||
ExecStart=/opt/YSFParrot/YSFParrot 42012
|
ExecStart=/opt/YSFParrot/YSFParrot 42012
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
|
||||||
KillMode=process
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue