Create periodic healthcheck units for the transient store
This commit is contained in:
parent
c852857583
commit
c18017eef4
3 changed files with 19 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ IFS=$'\n\t'
|
|||
|
||||
# keep-sorted start
|
||||
systemctl --user enable --now backup.timer
|
||||
systemctl --user enable --now podman-healthcheck@ollama.timer
|
||||
systemctl --user enable --now podman-healthcheck@transmission.timer
|
||||
systemctl --user enable --now sync-backup.timer
|
||||
systemctl --user enable --now sync-git-repos.timer
|
||||
# keep-sorted end
|
||||
|
|
|
|||
6
.config/systemd/user/podman-healthcheck@.service
Normal file
6
.config/systemd/user/podman-healthcheck@.service
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Podman health check for %i
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=podman --transient-store healthcheck run %i
|
||||
11
.config/systemd/user/podman-healthcheck@.timer
Normal file
11
.config/systemd/user/podman-healthcheck@.timer
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Podman health check timer for %i
|
||||
BindsTo=%i.service
|
||||
After=%i.service
|
||||
|
||||
[Timer]
|
||||
OnActiveSec=30s
|
||||
OnUnitActiveSec=30s
|
||||
|
||||
[Install]
|
||||
WantedBy=%i.service
|
||||
Loading…
Add table
Add a link
Reference in a new issue