helperbot docker cleanup services, make network check first instead of just running the command

This commit is contained in:
Ruben 2025-07-17 13:28:28 -05:00
commit 494bf08397
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5
5 changed files with 97 additions and 18 deletions

View file

@ -0,0 +1,6 @@
[Unit]
Description=helperbot docker cleanup command
[Service]
Type=oneshot
ExecStart=/usr/local/bin/helperbot --docker-cleanup

View file

@ -0,0 +1,9 @@
[Unit]
Description=helperbot docker cleanup command
[Timer]
OnBootSec=15min
OnUnitActiveSec=3d
[Install]
WantedBy=timers.target