3 # neutron-metadata-agent OpenStack Neutron Metadata Agent
6 # description: OpenStack Neutron Metadata Agent
9 . /etc/rc.d/init.d/functions
16 "/usr/share/$proj/$proj-dist.conf" \
17 "/etc/$proj/$proj.conf" \
18 "/etc/$proj/metadata_agent.ini" \
20 pidfile="/var/run/$proj/$prog.pid"
22 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
24 lockfile=/var/lock/subsys/$prog
27 [ -x $exec ] || exit 5
28 for config in ${configs[@]}; do
29 [ -f $config ] || exit 6
31 echo -n $"Starting $prog: "
32 daemon --user neutron --pidfile $pidfile "$exec --log-file /var/log/$proj/$plugin.log ${configs[@]/#/--config-file } &>/dev/null & echo \$! > $pidfile"
35 [ $retval -eq 0 ] && touch $lockfile
40 echo -n $"Stopping $prog: "
41 killproc -p $pidfile $prog
44 [ $retval -eq 0 ] && rm -f $lockfile
62 status -p $pidfile $prog
66 rh_status >/dev/null 2>&1
92 condrestart|try-restart)
97 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"