[systemd] Add nyt service and timer
This commit is contained in:
7
systemd/.config/systemd/user/nyt-downloader.service
Normal file
7
systemd/.config/systemd/user/nyt-downloader.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description="Download latest NYT cover"
|
||||
Requires=nyt-downloader.timer
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/nyt
|
||||
10
systemd/.config/systemd/user/nyt-downloader.timer
Normal file
10
systemd/.config/systemd/user/nyt-downloader.timer
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description="Timer for the NYT downloader"
|
||||
|
||||
[Timer]
|
||||
Unit=nyt-downloader.service
|
||||
OnBootSec=5min
|
||||
OnCalendar=*-*-* 08:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user