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
20 .
/usr
/share
/openvswitch
/scripts
/ovs-lib
21 if [ -e /etc
/default
/ovn-host
]; then
22 .
/etc
/default
/ovn-host
26 set /usr
/share
/openvswitch
/scripts
/ovn-ctl
${1-start_controller}
27 set "$@" $OVN_CTL_OPTS
36 /usr
/share
/openvswitch
/scripts
/ovn-ctl stop_controller
39 start restart_controller
42 /usr
/share
/openvswitch
/scripts
/ovn-ctl status_controller
45 reload | force-reload
)
48 echo "Usage: $0 {start|stop|reload|force-reload|restart|status}" >&2