bifrost/playbooks/roles/bifrost-ironic-install/templates/upstart_template.j2
stephane e6bfd65d0f Get install path for ironic services
Depending on the distribution, pip can install the ironic
services in /usr/bin or in /usr/local/bin. Find the correct
path so we can supply it to the templates for the systemd
and upstart files.

Change-Id: I058e6fdbe7d89249b4c9818a37ee22dafdd5d594
2015-08-28 11:52:19 -07:00

11 lines
352 B
Django/Jinja

start on runlevel [2345]
stop on runlevel [016]
pre-start script
mkdir -p /var/run/{{ item.username }}
chown -R {{ item.username }}:{{ item.username }} /var/run/{{ item.username }}
end script
respawn
respawn limit 2 10
exec start-stop-daemon --start -c {{ item.username }} --exec {{ item.service_path }}/{{ item.service_name }} -- {{ item.args }}