3 # quantum-openvswitch-agent OpenStack Open vSwitch plugin
6 # description: Support virtual networks using Open vSwitch
9 . /etc/rc.d/init.d/functions
12 plugin=openvswitch-agent
15 config="/etc/$proj/plugins/openvswitch/ovs_quantum_plugin.ini"
16 pidfile="/var/run/$proj/$prog.pid"
18 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
20 lockfile=/var/lock/subsys/$prog
23 [ -x $exec ] || exit 5
24 [ -f $config ] || exit 6
25 echo -n $"Starting $prog: "
26 daemon --user quantum --pidfile $pidfile "$exec --log-file /var/log/$proj/$plugin.log --config-file /etc/$proj/$proj.conf --config-file $config &>/dev/null & echo \$! > $pidfile"
29 [ $retval -eq 0 ] && touch $lockfile
34 echo -n $"Stopping $prog: "
35 killproc -p $pidfile $prog
38 [ $retval -eq 0 ] && rm -f $lockfile
56 status -p $pidfile $prog
60 rh_status >/dev/null 2>&1
86 condrestart|try-restart)
91 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"