1
description "{{ service_description }}"
2
author "Juju {{ service_name }} Charm <juju@localhost>"
4
start on runlevel [2345]
5
stop on runlevel [!2345]
10
mkdir -p /var/run/nova
11
chown nova:root /var/run/nova/
13
mkdir -p /var/lock/nova
14
chown nova:root /var/lock/nova/
18
# If libvirt-bin is installed, always wait for it to start first
19
if status libvirt-bin; then
20
start wait-for-state WAIT_FOR=libvirt-bin WAIT_STATE=running WAITER={{ process_name }}
24
exec start-stop-daemon --start --chuid {{ user_name }} --exec {{ executable_name }} -- \
25
{% for config_file in config_files -%}
26
--config-file={{ config_file }} \