~maas-maintainers/maas/packaging.precise.sru

« back to all changes in this revision

Viewing changes to debian/maas-cluster-controller.maas-pserv.upstart

  • Committer: Jeroen Vermeulen
  • Date: 2012-12-12 16:14:40 UTC
  • mfrom: (149.1.1 p-sru-pkg-bug-1086239)
  • Revision ID: jtv@canonical.com-20121212161440-j3yjmiqx8jort3e0
[author=jtv][r=rvba][bug=1086239] Backport packaging r156 to Precise SRU packaging branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
respawn
12
12
 
13
 
# To add options to your daemon, edit the line below:
14
 
exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
 
13
env CONFIG_FILE=/etc/maas/maas_cluster.conf
 
14
 
 
15
pre-start script
 
16
    if [ ! -f $CONFIG_FILE ]; then
 
17
        echo "$CONFIG_FILE does not exist.  Aborting."
 
18
        stop
 
19
        exit 0
 
20
    fi
 
21
end script
 
22
 
 
23
script
 
24
    # Prepare settings.
 
25
    . $CONFIG_FILE
 
26
    # To add options to your daemon, edit the line below:
 
27
    exec /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
 
28
end script