diff options
Diffstat (limited to 'distbuild/usr/lib/systemd')
12 files changed, 32 insertions, 5 deletions
diff --git a/distbuild/usr/lib/systemd/system/distbuild-setup.service b/distbuild/usr/lib/systemd/system/distbuild-setup.service new file mode 100644 index 00000000..ec5f5a2d --- /dev/null +++ b/distbuild/usr/lib/systemd/system/distbuild-setup.service @@ -0,0 +1,16 @@ +[Unit] +Description=Run distbuild-setup Ansible scripts +Requires=network.target +After=network.target +Requires=opensshd.service +After=opensshd.service + +# If there's a shared /var subvolume, it must be mounted before this +# unit runs. +Requires=local-fs.target +After=local-fs.target + +ConditionPathExists=/etc/distbuild/distbuild.conf + +[Service] +ExecStart=/usr/bin/ansible-playbook -v -i /usr/lib/distbuild-setup/ansible/hosts /usr/lib/distbuild-setup/ansible/distbuild-setup.yml diff --git a/distbuild/usr/lib/systemd/system/morph-cache-server.service b/distbuild/usr/lib/systemd/system/morph-cache-server.service index 7ee5e167..f55f3b6d 100644 --- a/distbuild/usr/lib/systemd/system/morph-cache-server.service +++ b/distbuild/usr/lib/systemd/system/morph-cache-server.service @@ -1,3 +1,6 @@ +[Install] +WantedBy=multi-user.target + [Unit] Description=Morph cache server Requires=local-fs.target network.target diff --git a/distbuild/usr/lib/systemd/system/morph-controller-helper.service b/distbuild/usr/lib/systemd/system/morph-controller-helper.service index 9e5bd3c8..3f30cbcf 100644 --- a/distbuild/usr/lib/systemd/system/morph-controller-helper.service +++ b/distbuild/usr/lib/systemd/system/morph-controller-helper.service @@ -1,3 +1,6 @@ +[Install] +WantedBy=multi-user.target + [Unit] Description=Morph distributed build controller helper Requires=morph-controller.service diff --git a/distbuild/usr/lib/systemd/system/morph-controller.service b/distbuild/usr/lib/systemd/system/morph-controller.service index b3ba93b4..1556d232 100644 --- a/distbuild/usr/lib/systemd/system/morph-controller.service +++ b/distbuild/usr/lib/systemd/system/morph-controller.service @@ -1,3 +1,6 @@ +[Install] +WantedBy=multi-user.target + [Unit] Description=Morph distributed build controller Requires=local-fs.target network.target diff --git a/distbuild/usr/lib/systemd/system/morph-worker-helper.service b/distbuild/usr/lib/systemd/system/morph-worker-helper.service index 14c082ce..28400701 100644 --- a/distbuild/usr/lib/systemd/system/morph-worker-helper.service +++ b/distbuild/usr/lib/systemd/system/morph-worker-helper.service @@ -1,3 +1,6 @@ +[Install] +WantedBy=multi-user.target + [Unit] Description=Morph distributed build worker helper Requires=morph-worker.service diff --git a/distbuild/usr/lib/systemd/system/morph-worker.service b/distbuild/usr/lib/systemd/system/morph-worker.service index 26dcb9ad..90fea404 100644 --- a/distbuild/usr/lib/systemd/system/morph-worker.service +++ b/distbuild/usr/lib/systemd/system/morph-worker.service @@ -1,3 +1,6 @@ +[Install] +WantedBy=multi-user.target + [Unit] Description=Morph distributed build worker Requires=local-fs.target network.target diff --git a/distbuild/usr/lib/systemd/system/multi-user.target.wants/distbuild-setup.service b/distbuild/usr/lib/systemd/system/multi-user.target.wants/distbuild-setup.service new file mode 120000 index 00000000..8f06febd --- /dev/null +++ b/distbuild/usr/lib/systemd/system/multi-user.target.wants/distbuild-setup.service @@ -0,0 +1 @@ +../distbuild-setup.service
\ No newline at end of file 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 deleted file mode 120000 index e624a31d..00000000 --- a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-cache-server.service +++ /dev/null @@ -1 +0,0 @@ -../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 deleted file mode 120000 index 1554df76..00000000 --- a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller-helper.service +++ /dev/null @@ -1 +0,0 @@ -../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 deleted file mode 120000 index 9d92814b..00000000 --- a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-controller.service +++ /dev/null @@ -1 +0,0 @@ -../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 deleted file mode 120000 index 298c582f..00000000 --- a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker-helper.service +++ /dev/null @@ -1 +0,0 @@ -../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 deleted file mode 120000 index 3f8d58a8..00000000 --- a/distbuild/usr/lib/systemd/system/multi-user.target.wants/morph-worker.service +++ /dev/null @@ -1 +0,0 @@ -../morph-worker.service
\ No newline at end of file |