[ovs-dev] [PATCH] xenserver: Add "reload" and "force-reload" support to init script.
Ben Pfaff
blp at nicira.com
Mon Aug 2 22:20:02 UTC 2010
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 at nicira.com>
Bug #3266.
---
xenserver/etc_init.d_openvswitch | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch
index 36d0afd..d9cf15c 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") "$@"
--
1.7.1
More information about the dev
mailing list