X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-controller.init;h=4781f83f2148c747ed5c50f25931ec1165875100;hb=520e9a2acdcf6136bf0a20586df6351ecf72dd3e;hp=cf01fcfc01c795b8c9a13d278ef7d43a52bf6d33;hpb=9b094b09bd15ef3c6b7929b1635706158750144f;p=openvswitch diff --git a/debian/openvswitch-controller.init b/debian/openvswitch-controller.init index cf01fcfc..4781f83f 100755 --- a/debian/openvswitch-controller.init +++ b/debian/openvswitch-controller.init @@ -42,7 +42,7 @@ test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Default options, these can be overriden by the information -# at /etc/default/$NAME +# at /etc/default/openvswitch-controller DAEMON_OPTS="" # Additional options given to the server DODTIME=10 # Time to wait for the server to die, in seconds @@ -175,10 +175,10 @@ force_stop() { if running ; then kill -15 $pid # Is it really dead? - sleep "$DIETIME"s + sleep "$DODTIME" if running ; then kill -9 $pid - sleep "$DIETIME"s + sleep "$DODTIME" if running ; then echo "Cannot kill $NAME (pid=$pid)!" exit 1 @@ -237,7 +237,7 @@ case "$1" in log_daemon_msg "Restarting $DESC" "$NAME" stop_server # Wait some sensible amount, some server need this - [ -n "$DIETIME" ] && sleep $DIETIME + [ -n "$DODTIME" ] && sleep $DODTIME start_server running log_end_msg $? @@ -260,7 +260,7 @@ case "$1" in log_warning_msg "cannot re-read the config file (use restart)." ;; *) - N=/etc/init.d/$NAME + N=/etc/init.d/openvswitch-controller echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 exit 1 ;;