diff --git a/systemd/.config/systemd/user/nyt-downloader.service b/systemd/.config/systemd/user/nyt-downloader.service new file mode 100644 index 0000000..cdd2323 --- /dev/null +++ b/systemd/.config/systemd/user/nyt-downloader.service @@ -0,0 +1,7 @@ +[Unit] +Description="Download latest NYT cover" +Requires=nyt-downloader.timer + +[Service] +Type=simple +ExecStart=/usr/local/bin/nyt diff --git a/systemd/.config/systemd/user/nyt-downloader.timer b/systemd/.config/systemd/user/nyt-downloader.timer new file mode 100644 index 0000000..ab22638 --- /dev/null +++ b/systemd/.config/systemd/user/nyt-downloader.timer @@ -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