[systemd] Add nyt service and timer

This commit is contained in:
2025-02-07 13:15:49 -05:00
parent c5c2947306
commit a25d8e4530
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description="Download latest NYT cover"
Requires=nyt-downloader.timer
[Service]
Type=simple
ExecStart=/usr/local/bin/nyt

View 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