/etc/init/maas-pserv.conf is in maas-cluster-controller 1.5.4+bzr2294-0ubuntu1.2.
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 31 32 | # maas-pserv - provisioning service
#
# MAAS Provisioning Service
description "MAAS"
author "Andres Rodriguez <andres.rodriguez@canonical.com>"
start on filesystem and net-device-up
stop on runlevel [016]
respawn
env CONFIG_FILE=/etc/maas/maas_cluster.conf
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 tftpd process to read CLUSTER_UUID as set in that config
# file.
export CLUSTER_UUID
export MAAS_URL
# To add options to your daemon, edit the line below:
exec /usr/bin/authbind --deep /usr/bin/twistd -n --uid=maas --gid=maas --pidfile=/run/maas-pserv.pid --logfile=/dev/null maas-pserv --config-file=/etc/maas/pserv.yaml
end script
|