Pārlūkot izejas kodu

[systemd] Add nyt service and timer

Colin Powell 3 mēneši atpakaļ
vecāks
revīzija
a25d8e4530

+ 7 - 0
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

+ 10 - 0
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