/etc/init/maas-cluster-celery.conf is in maas-cluster-controller 1.2+bzr1373+dfsg-0ubuntu1~12.04.6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | # maas-cluster-controller - provisioning service
#
# MAAS Cluster Controller Service
description "MAAS Cluster Controller"
author "Julian Edwards <julian.edwards@canonical.com>"
start on filesystem and net-device-up
stop on runlevel [016]
env CONFIG_FILE=/etc/maas/maas_cluster.conf
# Use cluster config.
env CELERY_CONFIG_MODULE="celeryconfig_cluster"
pre-start script
if [ ! -f $CONFIG_FILE ]; then
echo "$CONFIG_FILE does not exist. Aborting."
stop
exit 0
fi
end script
script
# Prepare settings.
. $CONFIG_FILE
# Allow the cluster-controller process to read CLUSTER_UUID as set
# in that config file.
export CLUSTER_UUID
exec /usr/sbin/maas-provision start-cluster-controller $MAAS_URL -u maas -g maas
end script
|