mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 11:16:32 +00:00
Make sysV init script run as daemon, for GitHub issue #45
This commit is contained in:
parent
bae9fa1480
commit
78f3966d66
@ -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…
Reference in New Issue
Block a user