projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2a71bf
)
Add help and version options to vswitch init script.
author
Keith Amidon
<keith@nicira.com>
Sun, 15 Mar 2009 03:58:30 +0000
(20:58 -0700)
committer
Keith Amidon
<keith@nicira.com>
Mon, 16 Mar 2009 20:39:51 +0000
(13:39 -0700)
vswitchd/etc/init.d/vswitch
patch
|
blob
|
history
diff --git
a/vswitchd/etc/init.d/vswitch
b/vswitchd/etc/init.d/vswitch
index 0c185a63199f4400da406d771bf69db067f151e0..ac559396f1d6c15bba3f4a5af1a248000f78073f 100755
(executable)
--- 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