summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-10-31 00:22:52 -0400
committerBruce Ashfield <bruce.ashfield@windriver.com>2013-11-25 15:25:34 -0500
commita5a59d040b5db77a06346a516d30566a21d41586 (patch)
tree4de8d0e5f26396e1a66f668eec38d7b3bbb1465f /meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init
parent0a962a285a529def3d3649544214bc36c9292d18 (diff)
downloadmeta-cloud-services-a5a59d040b5db77a06346a516d30566a21d41586.tar.gz
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 <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init')
-rw-r--r--meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init73
1 files changed, 0 insertions, 73 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init b/meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init
deleted file mode 100644
index e85bc48..0000000
--- a/meta-openstack/recipes-devtools/python/python-quantum/quantum-server.init
+++ /dev/null
@@ -1,73 +0,0 @@
1#!/bin/sh
2
3### BEGIN INIT INFO
4# Provides: quantum-server
5# Required-Start: $remote_fs $syslog
6# Required-Stop: $remote_fs $syslog
7# Default-Start: 2 3 5
8# Default-Stop: 0 1 6
9# Short-Description: quantum-server
10# Description: Provides the Quantum networking service
11### END INIT INFO
12
13DESC="quantum-server"
14DAEMON="/usr/bin/quantum-server"
15PIDFILE="/var/run/quantum-server.pid"
16DAEMON_ARGS="--config-file=/etc/quantum/quantum.conf --config-file=@plugin@"
17
18start()
19{
20 if [ -e $PIDFILE ]; then
21 PIDDIR=/proc/$(cat $PIDFILE)
22 if [ -d ${PIDDIR} ]; then
23 echo "$DESC already running."
24 exit 1
25 else
26 echo "Removing stale PID file $PIDFILE"
27 rm -f $PIDFILE
28 fi
29 fi
30
31 echo -n "Starting $DESC..."
32
33 start-stop-daemon --start --quiet --background \
34 --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \
35 -- $DAEMON_ARGS
36
37 if [ $? -eq 0 ]; then
38 echo "done."
39 else
40 echo "failed."
41 fi
42}
43
44stop()
45{
46 echo -n "Stopping $DESC..."
47 start-stop-daemon --stop --quiet --pidfile $PIDFILE
48 if [ $? -eq 0 ]; then
49 echo "done."
50 else
51 echo "failed."
52 fi
53 rm -f $PIDFILE
54}
55
56case "$1" in
57 start)
58 start
59 ;;
60 stop)
61 stop
62 ;;
63 restart|force-reload)
64 stop
65 start
66 ;;
67 *)
68 echo "Usage: $0 {start|stop|force-reload|restart}"
69 exit 1
70 ;;
71esac
72
73exit 0