e6bfd65d0f
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
11 lines
352 B
Django/Jinja
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 }}
|