gravity-sync/templates/gravity-sync.timer
Michael Stanclift ff32465625
3.7.0 (#315)
* add path removal to clear_cron

* 3.6.4

* add local folder to path

* templates for systemd timers

* Wantedby

* user root

* Gonna be 3.7

* Remove legacy cron code from automate function

* Core for moving replication jobs into place

* Move stop before copy

* Add Gravity Sync messages

* Service file customization

* Line break

* 10 minutes to sudo

* if active else

* Do things quietly

* Custom exec path

* clear exec start

* warning about cron

* no longer exists
2022-03-29 16:11:00 -05:00

16 lines
262 B
SYSTEMD

[Unit]
Description=Synchronize Pi-hole instances
RefuseManualStart=no
RefuseManualStop=no
Requires=gravity-sync.service
[Timer]
Unit=gravity-sync.service
Persistent=true
OnBootSec=120
OnUnitInactiveSec=5m
RandomizedDelaySec=5m
[Install]
WantedBy=timers.target