mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Make sysV init script run as daemon, for GitHub issue #45
This commit is contained in:
parent
bae9fa1480
commit
78f3966d66
1 changed files with 2 additions and 5 deletions
|
@ -59,9 +59,7 @@ case "$1" in
|
|||
exit 0
|
||||
fi
|
||||
echo "Starting ZeroTier One..."
|
||||
nohup zerotier-one >>/dev/null 2>&1 &
|
||||
disown %1
|
||||
exit 0
|
||||
zerotier-one -d
|
||||
;;
|
||||
stop)
|
||||
if [ $running -gt 0 ]; then
|
||||
|
@ -77,8 +75,7 @@ case "$1" in
|
|||
kill -TERM $pid
|
||||
fi
|
||||
while [ -f "$zthome/zerotier-one.pid" ]; do sleep 1; done
|
||||
nohup zerotier-one >>/dev/null 2>&1 &
|
||||
disown %1
|
||||
zerotier-one -d
|
||||
;;
|
||||
status)
|
||||
if [ $running -gt 0 ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue