From: Ben Pfaff Date: Mon, 2 Aug 2010 22:21:27 +0000 (-0700) Subject: xenserver: Add "reload" and "force-reload" support to init script. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210374eb3d590221725f0aa32661581658014ad8;p=openvswitch xenserver: Add "reload" and "force-reload" support to init script. I can't easily find anything that documents what commands Fedora init scripts should support, but many of them support "reload" and "force-reload". This commit adds support for them to the XenServer init scripts. (The Debian init scripts already had support.) Debian does document that reload and force-reload should be supported: http://www.debian.org/doc/debian-policy/ch-opersys.html#s-writing-init Reported-by: Reid Price Bug #3266. --- diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 36d0afdd..0988fcc4 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -359,6 +359,10 @@ case "$1" in restart) restart ;; + reload|force-reload) + # Nothing to do--ovs-vswitchd and ovsdb-server keep their configuration + # up-to-date all the time. + ;; strace-vswitchd) shift strace -p $(cat "$VSWITCHD_PIDFILE") "$@" @@ -379,7 +383,7 @@ case "$1" in /usr/sbin/ovs-brcompatd -V ;; help) - printf "openvswitch [start|stop|restart|unload|status|version]\n" + printf "openvswitch [start|stop|restart|reload|force-reload|status|version]\n" ;; *) printf "Unknown command: $1\n"