From c8e4c552533b9d9a90806d32385b7a695fc5a887 Mon Sep 17 00:00:00 2001 From: Keith Amidon Date: Sat, 14 Mar 2009 20:58:30 -0700 Subject: [PATCH] Add help and version options to vswitch init script. --- vswitchd/etc/init.d/vswitch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vswitchd/etc/init.d/vswitch b/vswitchd/etc/init.d/vswitch index 0c185a63..ac559396 100755 --- a/vswitchd/etc/init.d/vswitch +++ b/vswitchd/etc/init.d/vswitch @@ -112,6 +112,12 @@ case "$1" in status) status -p vswitchd.pid vswitchd ;; + version) + "$VSWITCH_BASE"/vswitchd/vswitchd -V + ;; + help) + printf "vswitch [start|stop|restart|reload|unload|status|version]\n" + ;; *) printf "Unknown command: $1\n" exit 1 -- 2.30.2