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
10 lines
242 B
Django/Jinja
10 lines
242 B
Django/Jinja
[Unit]
|
|
Description={{ item.service_name }} service
|
|
|
|
[Service]
|
|
ExecStart={{ item.service_path }}/{{ item.service_name }} {{ item.args }}
|
|
User={{ item.username }}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias={{ item.service_name }}{{ init_ext }} |