mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
fix service command, eliminate all uses of killall since it might be missing
This commit is contained in:
parent
059aaae7a9
commit
638ae153cc
2 changed files with 17 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
||||
shopt -s expand_aliases
|
||||
|
||||
dryRun=0
|
||||
|
@ -139,7 +139,11 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
service zerotier-one restart &
|
||||
if [ -f /sbin/service -o -f /usr/sbin/service ]; then
|
||||
service zerotier-one restart &
|
||||
else
|
||||
/etc/init.d/zerotier-one restart &
|
||||
fi
|
||||
fi
|
||||
|
||||
sleep 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue