From 210374eb3d590221725f0aa32661581658014ad8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 2 Aug 2010 15:21:27 -0700 Subject: [PATCH] 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. --- xenserver/etc_init.d_openvswitch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- 2.30.2