From 9caff6b5d47c3eac345cbc6994a8a4af1ccd13df Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 28 Sep 2026 23:31:15 +0200 Subject: [PATCH] comitting the systemctl services --- fastdl_sync/systemd/r2-healthcheck.service | 11 +++++++++++ fastdl_sync/systemd/r2-healthcheck.timer | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 fastdl_sync/systemd/r2-healthcheck.service create mode 100644 fastdl_sync/systemd/r2-healthcheck.timer diff --git a/fastdl_sync/systemd/r2-healthcheck.service b/fastdl_sync/systemd/r2-healthcheck.service new file mode 100644 index 0000000..f7adc5f --- /dev/null +++ b/fastdl_sync/systemd/r2-healthcheck.service @@ -0,0 +1,11 @@ +[Unit] +Description=R2 fastdl health check +Wants=network-online.target +After=network-online.target + +[Service] +Type=oneshot +# Must be the user whose rclone config contains the r2demo remote +User=gameservers +ExecStart=/usr/bin/python3 /home/gameservers/fastdl_sync/r2_healthcheck.py + diff --git a/fastdl_sync/systemd/r2-healthcheck.timer b/fastdl_sync/systemd/r2-healthcheck.timer new file mode 100644 index 0000000..61309a4 --- /dev/null +++ b/fastdl_sync/systemd/r2-healthcheck.timer @@ -0,0 +1,12 @@ +[Unit] +Description=Run R2 fastdl health check weekly + +[Timer] +OnCalendar=weekly +Persistent=true +RandomizedDelaySec=1h + +[Install] +WantedBy=timers.target + +