mirror of
https://github.com/moparisthebest/pi-hole
synced 2024-08-13 16:53:51 -04:00
Merge pull request #69 from dschaper/cron
SystemD Timer and Service File
This commit is contained in:
commit
e6aabcedee
6
advanced/pihole-update.service
Normal file
6
advanced/pihole-update.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Raspberry Pi Ad Blocker
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/bin/gravity.sh
|
11
advanced/pihole-update.timer
Normal file
11
advanced/pihole-update.timer
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Raspberry Pi Ad Blocker
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
# Time to wait after boot
|
||||||
|
OnBootSec=10min
|
||||||
|
# Time to wait for ongoing script executions
|
||||||
|
OnUnitActiveSec=1w
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user