~smoser/ubuntu/trusty/maas/lp-1172566

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2014-04-03 13:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 58.
  • Revision ID: package-import@ubuntu.com-20140403134502-8a6wvuqwyuekufh0
Tags: upstream-1.5+bzr2227
ImportĀ upstreamĀ versionĀ 1.5+bzr2227

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# maas-cluster-controller - provisioning service
2
 
#
3
 
# MAAS Cluster Controller Service
4
 
 
5
 
description     "MAAS Cluster Controller"
6
 
author "Julian Edwards <julian.edwards@canonical.com>"
7
 
 
8
 
start on filesystem and net-device-up
9
 
stop on runlevel [016]
10
 
 
11
 
env CONFIG_FILE=/etc/maas/maas_cluster.conf
12
 
# Use cluster config.
13
 
env CELERY_CONFIG_MODULE="celeryconfig_cluster"
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
 
    # Allow the cluster-controller process to read CLUSTER_UUID as set
27
 
    # in that config file.
28
 
    export CLUSTER_UUID
29
 
    exec /usr/bin/authbind --deep /usr/sbin/maas-provision start-cluster-controller $MAAS_URL -u maas -g maas
30
 
end script