Add help and version options to vswitch init script.
authorKeith Amidon <keith@nicira.com>
Sun, 15 Mar 2009 03:58:30 +0000 (20:58 -0700)
committerKeith Amidon <keith@nicira.com>
Mon, 16 Mar 2009 20:39:51 +0000 (13:39 -0700)
vswitchd/etc/init.d/vswitch

index 0c185a63199f4400da406d771bf69db067f151e0..ac559396f1d6c15bba3f4a5af1a248000f78073f 100755 (executable)
@@ -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