bifrost/playbooks/roles/ironic-install/templates/init_template.j2
Julia Kreger f18c26a9b3 Rearranging the repository
Moved Ansible specific elements to playbooks/
2015-04-16 15:22:30 -04:00

11 lines
343 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 /usr/local/bin/{{ item.service_name }} -- {{ item.args }}