From 0b0fc558beedcf3780aa65278aa40bc31f25c8db Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 15 Nov 2023 13:03:25 -0700 Subject: [PATCH] Add systemd units for exporter and dispatcher These are copies of what is currently in use in sepia. Signed-off-by: Zack Cerza --- systemd/teuthology-dispatcher@.service | 18 ++++++++++++++++++ systemd/teuthology-exporter.service | 12 ++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 systemd/teuthology-dispatcher@.service create mode 100644 systemd/teuthology-exporter.service diff --git a/systemd/teuthology-dispatcher@.service b/systemd/teuthology-dispatcher@.service new file mode 100644 index 000000000..7326816f5 --- /dev/null +++ b/systemd/teuthology-dispatcher@.service @@ -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 index 000000000..15b951aaf --- /dev/null +++ b/systemd/teuthology-exporter.service @@ -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 -- 2.47.3