mirror of
https://github.com/openvswitch/ovs
synced 2025-10-27 15:18:06 +00:00
xenserver: Cleanup vswitch-xapi-update init script
Remove unused variables and correct typo in usage string.
This commit is contained in:
@@ -21,21 +21,6 @@
|
|||||||
|
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
test -e /etc/sysconfig/vswitch && . /etc/sysconfig/vswitch
|
|
||||||
: ${VSWITCHD_CONF:=/etc/ovs-vswitchd.conf}
|
|
||||||
: ${VSWITCHD_PIDFILE:=/var/run/ovs-vswitchd.pid}
|
|
||||||
: ${VSWITCHD_PRIORITY:=-5}
|
|
||||||
: ${VSWITCHD_LOGFILE:=/var/log/ovs-vswitchd.log}
|
|
||||||
: ${VSWITCHD_FILE_LOGLEVEL:=}
|
|
||||||
: ${VSWITCHD_SYSLOG_LOGLEVEL:=WARN}
|
|
||||||
: ${VSWITCHD_MEMLEAK_LOGFILE:=}
|
|
||||||
: ${BRCOMPATD_PIDFILE:=/var/run/ovs-brcompatd.pid}
|
|
||||||
: ${BRCOMPATD_PRIORITY:=-5}
|
|
||||||
: ${BRCOMPATD_LOGFILE:=/var/log/ovs-brcompatd.log}
|
|
||||||
: ${BRCOMPATD_FILE_LOGLEVEL:=}
|
|
||||||
: ${BRCOMPATD_SYSLOG_LOGLEVEL:=WARN}
|
|
||||||
: ${BRCOMPATD_MEMLEAK_LOGFILE:=}
|
|
||||||
|
|
||||||
function do_host_call {
|
function do_host_call {
|
||||||
xe host-call-plugin host-uuid="$INSTALLATION_UUID" plugin="vswitch-cfg-update" fn="update" >/dev/null
|
xe host-call-plugin host-uuid="$INSTALLATION_UUID" plugin="vswitch-cfg-update" fn="update" >/dev/null
|
||||||
}
|
}
|
||||||
@@ -60,7 +45,7 @@ case "$1" in
|
|||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
help)
|
help)
|
||||||
printf "vswitch [start|stop|restart]\n"
|
printf "vswitch-xapi-update [start|stop|restart]\n"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "Unknown command: $1\n"
|
printf "Unknown command: $1\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user