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 + +