Merge pull request #69 from dschaper/cron

SystemD Timer and Service File
This commit is contained in:
Jacob Salmela 2015-11-06 06:04:10 -06:00
commit e6aabcedee
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Unit]
Description=Raspberry Pi Ad Blocker
[Service]
Type=simple
ExecStart=/usr/local/bin/gravity.sh

View 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