Commit bf22a0a1 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Simplify re6stnet restart

parent 8d9ac434
......@@ -61,16 +61,6 @@ status() {
return $RETVAL
}
restart() {
echo -n "Restarting $NAME: "
/usr/local/bin/daemon --user root -n $NAME --pidfile=$PIDFILE -D $CONFDIR --restart -- $DAEMON @re6stnet.conf
RETVAL=$?
[ $RETVAL -eq 0 ] && touch $LOCKFILE
[ $RETVAL -eq 0 ] && echo OK || echo FAIL
echo
return $RETVAL
}
case "$1" in
start)
start
......@@ -82,7 +72,8 @@ case "$1" in
status
;;
restart)
restart
stop
start
;;
*)
echo "Usage: <servicename> {start|stop|status|restart}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment