소스 검색

[systemd] Add nyt service and timer

Colin Powell 6 달 전
부모
커밋
a25d8e4530
2개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      systemd/.config/systemd/user/nyt-downloader.service
  2. 10 0
      systemd/.config/systemd/user/nyt-downloader.timer

+ 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