From a5a59d040b5db77a06346a516d30566a21d41586 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 31 Oct 2013 00:22:52 -0400 Subject: python-quantum/python-neutron: update to havana version Updating the OpenStack networking component to the havana release version. As part of this switch, we rename the components from quantum to neutron and switch to a git based build for the client and servers. Signed-off-by: Bruce Ashfield --- .../python/python-neutron/neutron-agent.init | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init (limited to 'meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init') diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init new file mode 100644 index 0000000..f575746 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init @@ -0,0 +1,70 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 5 +# Default-Stop: 0 1 6 +# Description: Quantum networking agent +### END INIT INFO + +SUFFIX=@suffix@ +DESC="neutron-$SUFFIX-agent" +DAEMON="/usr/bin/neutron-$SUFFIX-agent" +PIDFILE="/var/run/neutron-$SUFFIX-agent.pid" + +start() +{ + if [ -e $PIDFILE ]; then + PIDDIR=/proc/$(cat $PIDFILE) + if [ -d ${PIDDIR} ]; then + echo "$DESC already running." + exit 1 + else + echo "Removing stale PID file $PIDFILE" + rm -f $PIDFILE + fi + fi + + echo -n "Starting $DESC..." + + start-stop-daemon --start --quiet --background \ + --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} + + if [ $? -eq 0 ]; then + echo "done." + else + echo "failed." + fi +} + +stop() +{ + echo -n "Stopping $DESC..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE + if [ $? -eq 0 ]; then + echo "done." + else + echo "failed." + fi + rm -f $PIDFILE +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|force-reload) + stop + start + ;; + *) + echo "Usage: $0 {start|stop|force-reload|restart}" + exit 1 + ;; +esac + +exit 0 -- cgit v1.2.3-54-g00ecf