/etc/init/aodh-api.conf is in aodh-api 3.0.0-4+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 37 38 39 40 | description "OpenStack Aodh API"
author "Thomas Goirand <zigo@debian.org>"
start on runlevel [2345]
stop on runlevel [!2345]
chdir /var/run
respawn
respawn limit 20 5
limit nofile 65535 65535
pre-start script
for i in lock run lib ; do
mkdir -p /var/$i/aodh
chown aodh:aodh /var/$i/aodh
done
for i in log ; do
mkdir -p /var/$i/aodh
chown aodh:adm /var/$i/aodh
done
end script
script
[ -x "/usr/bin/uwsgi_python" ] || exit 0
DAEMON_ARGS="--master --die-on-term --logto /var/log/aodh/aodh-api.log --stats localhost:9314 --http-socket :8042 --wsgi-file /usr/share/aodh-common/app.wsgi"
CONFIG_FILE="/etc/aodh/aodh.conf"
USE_SYSLOG="no"
USE_LOGFILE=""
NO_OPENSTACK_CONFIG_FILE_DAEMON_ARG="yes"
[ -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/aodh/aodh-api.log"
[ -z "$NO_OPENSTACK_CONFIG_FILE_DAEMON_ARG" ] && DAEMON_ARGS="$DAEMON_ARGS --config-file=$CONFIG_FILE"
exec start-stop-daemon --start --chdir /var/lib/aodh \
--chuid aodh:aodh --make-pidfile --pidfile /var/run/aodh/aodh-api.pid \
--exec /usr/bin/uwsgi_python -- ${DAEMON_ARGS}
end script
|