5 # Required-Start: openvswitch-switch $remote_fs $syslog
6 # Required-Stop: $remote_fs
7 # Default-Start: 2 3 4 5
9 # Short-Description: OVN host components
10 # Description: ovn-host provides the userspace
11 # components and utilities for OVN that can be run on
12 # every host/hypervisor.
15 test -x /usr
/bin
/ovn-controller ||
exit 0
16 test -x /usr
/share
/openvswitch
/scripts
/ovn-ctl ||
exit 0
18 _SYSTEMCTL_SKIP_REDIRECT
=yes
19 SYSTEMCTL_SKIP_REDIRECT
=yes
21 .
/usr
/share
/openvswitch
/scripts
/ovs-lib
22 if [ -e /etc
/default
/ovn-host
]; then
23 .
/etc
/default
/ovn-host
27 set /usr
/share
/openvswitch
/scripts
/ovn-ctl
${1-start_controller}
28 set "$@" $OVN_CTL_OPTS
37 /usr
/share
/openvswitch
/scripts
/ovn-ctl stop_controller
40 start restart_controller
43 /usr
/share
/openvswitch
/scripts
/ovn-ctl status_controller
46 reload | force-reload
)
49 echo "Usage: $0 {start|stop|reload|force-reload|restart|status}" >&2