Browse Source

Make sysV init script run as daemon, for GitHub issue #45

pull/1/head
Adam Ierymenko 12 years ago
parent
commit
78f3966d66
  1. 7
      ext/installfiles/linux/init.d/zerotier-one

7
ext/installfiles/linux/init.d/zerotier-one

@ -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…
Cancel
Save