summaryrefslogtreecommitdiff
path: root/systemd-services
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-07-01 15:39:01 +0200
committerms <ms@taler.net>2021-07-01 15:39:01 +0200
commit73c4c65079ce65edcb2a0d4e4ce6153f718fbfed (patch)
tree9fdc507c8740216787b11aecaf3a98c3caeb6da5 /systemd-services
parent941507670fa3275c863e88fefff10cfd14e98f05 (diff)
downloaddeployment-73c4c65079ce65edcb2a0d4e4ce6153f718fbfed.tar.gz
deployment-73c4c65079ce65edcb2a0d4e4ce6153f718fbfed.tar.bz2
deployment-73c4c65079ce65edcb2a0d4e4ce6153f718fbfed.zip
tips checker needs dedicate worker.
Mainly because it depends on the 'activate' script that populates the environment with the merchant API key. It would not be possible to query the state of tip reserves without such key.
Diffstat (limited to 'systemd-services')
-rw-r--r--systemd-services/tips-checker.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/systemd-services/tips-checker.service b/systemd-services/tips-checker.service
new file mode 100644
index 0000000..d7a0118
--- /dev/null
+++ b/systemd-services/tips-checker.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Buildbot worker service for the integration test
+AssertPathExists=%h/worker
+
+[Service]
+WorkingDirectory=%h
+ExecStart=/usr/bin/buildbot-worker start --nodaemon tips-checker-dir
+ExecReload=/usr/bin/buildbot-worker restart --nodaemon tips-checker-dir
+ExecStop=/usr/bin/buildbot-worker stop tips-checker-dir
+Restart=always
+
+[Install]
+WantedBy=default.target