2
# Copyright 2012 Canonical Ltd. This software is licensed under the
3
# GNU Affero General Public License version 3 (see the file LICENSE).
5
# Exit immediately if a command exits with a non-zero status.
7
# Treat unset variables as an error when substituting.
10
# Move to the project root.
11
cd "$(dirname "$0")/../.."
13
# Start logging, if requested. Not using multilog here right now
14
# because there are race issues when restarting.
15
[ -z "${logdir:-}" ] || exec &>> "${logdir}/current"
17
# Exec the Provisioning Server.
18
script="$(readlink -f bin/twistd.txlongpoll)"
19
config="$(readlink -f etc/txlongpoll.yaml)"
20
exec "${script}" --nodaemon --pidfile="" txlongpoll --config-file "${config}"