]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add systemd units for exporter and dispatcher 1900/head
authorZack Cerza <zack@redhat.com>
Wed, 15 Nov 2023 20:03:25 +0000 (13:03 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 15 Nov 2023 20:03:25 +0000 (13:03 -0700)
These are copies of what is currently in use in sepia.

Signed-off-by: Zack Cerza <zack@redhat.com>
systemd/teuthology-dispatcher@.service [new file with mode: 0644]
systemd/teuthology-exporter.service [new file with mode: 0644]

diff --git a/systemd/teuthology-dispatcher@.service b/systemd/teuthology-dispatcher@.service
new file mode 100644 (file)
index 0000000..7326816
--- /dev/null
@@ -0,0 +1,18 @@
+[Unit]
+Description=Teuthology Dispatcher
+
+Wants=ceph.target
+After=ceph.target
+
+[Service]
+Type=simple
+User=teuthworker
+ExecStart=/home/teuthworker/src/git.ceph.com_git_teuthology_main/virtualenv/bin/python3.8 \
+    /home/teuthworker/src/git.ceph.com_git_teuthology_main/virtualenv/bin/teuthology-dispatcher \
+    -v \
+    --archive-dir /home/teuthworker/archive \
+    --tube %i \
+    --log-dir /home/teuthworker/archive/worker_logs
+ExecStop=touch /tmp/teuthology-stop-dispatcher
+Restart=on-failure
+TimeoutStopSec=infinity
diff --git a/systemd/teuthology-exporter.service b/systemd/teuthology-exporter.service
new file mode 100644 (file)
index 0000000..15b951a
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Teuthology Exporter
+
+Wants=ceph.target
+After=ceph.target
+
+[Service]
+Type=simple
+User=teuthworker
+ExecStart=/home/teuthworker/src/git.ceph.com_git_teuthology_main/virtualenv/bin/teuthology-exporter
+Restart=on-failure
+TimeoutStopSec=60