xenserver: Add "reload" and "force-reload" support to init script.
authorBen Pfaff <blp@nicira.com>
Mon, 2 Aug 2010 22:21:27 +0000 (15:21 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 2 Aug 2010 22:21:27 +0000 (15:21 -0700)
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 <reid@nicira.com>
Bug #3266.

xenserver/etc_init.d_openvswitch

index 36d0afddd98405a5cdfb8cbc0dec1b3e8b93dadb..0988fcc444254213fa0d5680f18b086a7520c68f 100755 (executable)
@@ -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"