From: Keith Amidon Date: Sun, 15 Mar 2009 03:58:30 +0000 (-0700) Subject: Add help and version options to vswitch init script. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8e4c552533b9d9a90806d32385b7a695fc5a887;p=openvswitch Add help and version options to vswitch init script. --- 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