~thomir-deactivatedaccount/charms/trusty/tanuki-result-enum-worker/trunk

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/templates/git.upstart

  • Committer: Thomi Richards
  • Date: 2015-06-16 04:35:51 UTC
  • Revision ID: thomi.richards@canonical.com-20150616043551-6efyisjvm20vefq3
Add missing bits of charmhelpers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description "{{ service_description }}"
 
2
author "Juju {{ service_name }} Charm <juju@localhost>"
 
3
 
 
4
start on runlevel [2345]
 
5
stop on runlevel [!2345]
 
6
 
 
7
respawn
 
8
 
 
9
exec start-stop-daemon --start --chuid {{ user_name }} \
 
10
            --chdir {{ start_dir }} --name {{ process_name }} \
 
11
            --exec {{ executable_name }} -- \
 
12
            {% for config_file in config_files -%}
 
13
            --config-file={{ config_file }} \
 
14
            {% endfor -%}
 
15
            {% if log_file -%}
 
16
            --log-file={{ log_file }}
 
17
            {% endif -%}