summaryrefslogtreecommitdiff
path: root/distbuild/usr/lib/systemd/system/morph-worker.service
diff options
context:
space:
mode:
Diffstat (limited to 'distbuild/usr/lib/systemd/system/morph-worker.service')
-rw-r--r--distbuild/usr/lib/systemd/system/morph-worker.service10
1 files changed, 10 insertions, 0 deletions
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