Merge pull request #69 from dschaper/cron
SystemD Timer and Service File
This commit is contained in:
commit
e6aabcedee
|
@ -0,0 +1,6 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Raspberry Pi Ad Blocker
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/local/bin/gravity.sh
|
|
@ -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