commit 375e4cb94d5de361d15b546e02c5734fdd90d40d parent 6e57e2edb20177da7dce2961e1f65f0a4b00ba37 Author: dwrz <dwrz@dwrz.net> Date: Sun, 28 May 2023 02:40:08 +0000 Add health check service and timer Diffstat:
A | systemd/user/health-check.service | | | 11 | +++++++++++ |
A | systemd/user/health-check.timer | | | 13 | +++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/systemd/user/health-check.service b/systemd/user/health-check.service @@ -0,0 +1,11 @@ +[Unit] +Description=Health check dwrz.net +RefuseManualStart=no +RefuseManualStop=yes + +[Service] +Type=oneshot +ExecStart=/home/dwrz/.local/bin/health-check + +[Install] +WantedBy=timers.target diff --git a/systemd/user/health-check.timer b/systemd/user/health-check.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Health check dwrz.net +RefuseManualStart=no +RefuseManualStop=no + +[Timer] +Persistent=false +OnBootSec=5min +OnUnitActiveSec=15min +Unit=health-check.service + +[Install] +WantedBy=default.target