5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 03:41:37 +00:00

Merge branch 'develop' of github.com:yggdrasil-network/yggdrasil-go into multilink

This commit is contained in:
Neil Alexander 2019-03-06 11:06:58 +00:00
commit cc0c725e63
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -34,8 +34,8 @@ start() {
fi
printf 'Starting yggdrasil: '
if start-stop-daemon -S -b -x /usr/bin/yggdrasil \
-- --useconf < "$CONFFILE"; then
if start-stop-daemon -S -q -b -x /usr/bin/yggdrasil \
-- -useconffile "$CONFFILE"; then
echo "OK"
else
echo "FAIL"
@ -51,20 +51,26 @@ stop() {
fi
}
reload() {
printf "Reloading yggdrasil: "
if start-stop-daemon -K -q -s HUP -x /usr/bin/yggdrasil; then
echo "OK"
else
echo "FAIL"
start
fi
}
restart() {
stop
start
}
reload() {
restart
}
case "$1" in
start|stop|restart|reload)
"$1";;
*)
echo "Usage: $0 {start|stop|restart}"
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac