3 # neutron-vpn-agent OpenStack Neutron VPN Agent
6 # description: OpenStack Neutron VPN Agent
9 . /etc/rc.d/init.d/functions
16 "/usr/share/$proj/$proj-dist.conf" \
17 "/etc/$proj/$proj.conf" \
18 "/etc/$proj/vpn_agent.ini" \
19 "/etc/$proj/l3_agent.ini" \
21 pidfile="/var/run/$proj/$prog.pid"
23 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
25 lockfile=/var/lock/subsys/$prog
28 [ -x $exec ] || exit 5
29 for config in ${configs[@]}; do
30 [ -f $config ] || exit 6
32 echo -n $"Starting $prog: "
33 daemon --user neutron --pidfile $pidfile "$exec --log-file /var/log/$proj/$plugin.log ${configs[@]/#/--config-file } &>/dev/null & echo \$! > $pidfile"
36 [ $retval -eq 0 ] && touch $lockfile
41 echo -n $"Stopping $prog: "
42 killproc -p $pidfile $prog
45 [ $retval -eq 0 ] && rm -f $lockfile
63 status -p $pidfile $prog
67 rh_status >/dev/null 2>&1
93 condrestart|try-restart)
98 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"