blob: 9d44be2ae3aeea7a1ccace45e3be37e9cbde5a6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
description "Conductor Controller"
author "Joe D'Andrea <jdandrea@research.att.com>"
env PYTHON_HOME=
start on runlevel [2345]
stop on runlevel [!2345]
chdir /var/run
respawn
limit nofile 65535 65535
pre-start script
for i in lock run log lib ; do
mkdir -p /var/$i/conductor
chown conductor /var/$i/conductor
done
end script
script
DAEMON="/usr/bin/conductor-controller"
[ -d "$PYTHON_HOME" ] && DAEMON="$PYTHON_HOME/bin/conductor-controller"
[ -x "$DAEMON" ] || exit 0
DAEMON_ARGS=""
[ -r /etc/default/openstack ] && . /etc/default/openstack
[ -r /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
[ "x$USE_SYSLOG" = "xyes" ] && DAEMON_ARGS="$DAEMON_ARGS --use-syslog"
[ "x$USE_LOGFILE" != "xno" ] && DAEMON_ARGS="$DAEMON_ARGS --log-file=/var/log/conductor/conductor-controller.log"
exec start-stop-daemon --start --chdir /var/lib/conductor \
--chuid conductor:conductor --make-pidfile --pidfile /var/run/conductor/conductor-controller.pid \
--exec $DAEMON -- --config-file=/etc/conductor/conductor.conf ${DAEMON_ARGS}
end script
|