From dfb79081b1624dc9c019b02468e59c0fd10e6330 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Mon, 17 Mar 2014 12:36:15 +0000 Subject: Import distbuild configuration files into definitions.git These files should be installed into distbuild worker and controller systems using the install-files configure extension, by adding the following line in the cluster morphology. INSTALL_FILES: distbuild/manifest These files were previously in the internal Codethink chunk repo 'distbuild-setup', and were installed by a Makefile. --- distbuild/usr/lib/systemd/system/morph-cache-server.service | 9 +++++++++ .../usr/lib/systemd/system/morph-controller-helper.service | 10 ++++++++++ distbuild/usr/lib/systemd/system/morph-controller.service | 9 +++++++++ distbuild/usr/lib/systemd/system/morph-worker-helper.service | 10 ++++++++++ distbuild/usr/lib/systemd/system/morph-worker.service | 10 ++++++++++ .../system/multi-user.target.wants/morph-cache-server.service | 1 + .../multi-user.target.wants/morph-controller-helper.service | 1 + .../system/multi-user.target.wants/morph-controller.service | 1 + .../system/multi-user.target.wants/morph-worker-helper.service | 1 + .../system/multi-user.target.wants/morph-worker.service | 1 + 10 files changed, 53 insertions(+) create mode 100644 distbuild/usr/lib/systemd/system/morph-cache-server.service create mode 100644 distbuild/usr/lib/systemd/system/morph-controller-helper.service create mode 100644 distbuild/usr/lib/systemd/system/morph-controller.service create mode 100644 distbuild/usr/lib/systemd/system/morph-worker-helper.service create mode 100644 distbuild/usr/lib/systemd/system/morph-worker.service create mode 120000 distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-cache-server.service create mode 120000 distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller-helper.service create mode 120000 distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller.service create mode 120000 distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker-helper.service create mode 120000 distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker.service (limited to 'distbuild/usr/lib/systemd/system') diff --git a/distbuild/usr/lib/systemd/system/morph-cache-server.service b/distbuild/usr/lib/systemd/system/morph-cache-server.service new file mode 100644 index 00000000..7ee5e167 --- /dev/null +++ b/distbuild/usr/lib/systemd/system/morph-cache-server.service @@ -0,0 +1,9 @@ +[Unit] +Description=Morph cache server +Requires=local-fs.target network.target +After=local-fs.target network.target +ConditionPathExists=/etc/morph-cache-server.conf + +[Service] +ExecStart=/usr/bin/morph-cache-server +Restart=always diff --git a/distbuild/usr/lib/systemd/system/morph-controller-helper.service b/distbuild/usr/lib/systemd/system/morph-controller-helper.service new file mode 100644 index 00000000..9e5bd3c8 --- /dev/null +++ b/distbuild/usr/lib/systemd/system/morph-controller-helper.service @@ -0,0 +1,10 @@ +[Unit] +Description=Morph distributed build controller helper +Requires=morph-controller.service +After=morph-controller.service +ConditionPathExists=/etc/morph-controller.conf +ConditionPathExists=/etc/morph-controller-helper.conf + +[Service] +ExecStart=/usr/bin/distbuild-helper --config /etc/morph-controller-helper.conf +Restart=always diff --git a/distbuild/usr/lib/systemd/system/morph-controller.service b/distbuild/usr/lib/systemd/system/morph-controller.service new file mode 100644 index 00000000..b3ba93b4 --- /dev/null +++ b/distbuild/usr/lib/systemd/system/morph-controller.service @@ -0,0 +1,9 @@ +[Unit] +Description=Morph distributed build controller +Requires=local-fs.target network.target +After=local-fs.target network.target +ConditionPathExists=/etc/morph-controller.conf + +[Service] +ExecStart=/usr/bin/morph controller-daemon --config /etc/morph-controller.conf +Restart=always diff --git a/distbuild/usr/lib/systemd/system/morph-worker-helper.service b/distbuild/usr/lib/systemd/system/morph-worker-helper.service new file mode 100644 index 00000000..14c082ce --- /dev/null +++ b/distbuild/usr/lib/systemd/system/morph-worker-helper.service @@ -0,0 +1,10 @@ +[Unit] +Description=Morph distributed build worker helper +Requires=morph-worker.service +After=morph-worker.service +ConditionPathExists=/etc/morph-worker.conf +ConditionPathExists=/etc/morph-worker-helper.conf + +[Service] +ExecStart=/usr/bin/distbuild-helper --config /etc/morph-worker-helper.conf +Restart=always diff --git a/distbuild/usr/lib/systemd/system/morph-worker.service b/distbuild/usr/lib/systemd/system/morph-worker.service new file mode 100644 index 00000000..26dcb9ad --- /dev/null +++ b/distbuild/usr/lib/systemd/system/morph-worker.service @@ -0,0 +1,10 @@ +[Unit] +Description=Morph distributed build worker +Requires=local-fs.target network.target +Wants=srv-distbuild-ccache.mount +After=local-fs.target network.target srv-distbuild-ccache.mount +ConditionPathExists=/etc/morph-worker.conf + +[Service] +ExecStart=/usr/bin/morph worker-daemon --config /etc/morph-worker.conf +Restart=always diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-cache-server.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-cache-server.service new file mode 120000 index 00000000..e624a31d --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-cache-server.service @@ -0,0 +1 @@ +../morph-cache-server.service \ No newline at end of file diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller-helper.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller-helper.service new file mode 120000 index 00000000..1554df76 --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller-helper.service @@ -0,0 +1 @@ +../morph-controller-helper.service \ No newline at end of file diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller.service new file mode 120000 index 00000000..9d92814b --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller.service @@ -0,0 +1 @@ +../morph-controller.service \ No newline at end of file diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker-helper.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker-helper.service new file mode 120000 index 00000000..298c582f --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker-helper.service @@ -0,0 +1 @@ +../morph-worker-helper.service \ No newline at end of file diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker.service new file mode 120000 index 00000000..3f8d58a8 --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker.service @@ -0,0 +1 @@ +../morph-worker.service \ No newline at end of file -- cgit v1.2.1