mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
debian: Correct naming in init scripts
A number of the init scripts assumed that the package name was the same as the binary, which is not always true. This fixes those issues as well as some incorrect names in usage messages. Reported-by: Ram Jothikumar <rjothikumar@nicira.com>
This commit is contained in:
4
debian/openvswitch-controller.init
vendored
4
debian/openvswitch-controller.init
vendored
@@ -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
|
||||
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user