From aa4d546f9293cfce10ceb13642abb40ab6265cdc Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 5 Jun 2022 12:16:55 +0200 Subject: Add systemd user units for RSS URL sync --- .config/systemd/user/rss.service | 9 +++++++++ .config/systemd/user/rss.timer | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 .config/systemd/user/rss.service create mode 100644 .config/systemd/user/rss.timer diff --git a/.config/systemd/user/rss.service b/.config/systemd/user/rss.service new file mode 100644 index 0000000..8e93d30 --- /dev/null +++ b/.config/systemd/user/rss.service @@ -0,0 +1,9 @@ +[Unit] +Description=Synchronize my newsboat URL file + +[Service] +Type=oneshot +ExecStart=sh -c "rsync -av cloud:~/.config/newsboat/urls ~/.config/newsboat/urls" + +[Install] +WantedBy=multi-user.target diff --git a/.config/systemd/user/rss.timer b/.config/systemd/user/rss.timer new file mode 100644 index 0000000..c76ab28 --- /dev/null +++ b/.config/systemd/user/rss.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Synchronize my newsboat URL file automatically + +[Timer] +OnActiveSec=0 +OnUnitInactiveSec=5 min + +[Install] +WantedBy=timers.target -- cgit v1.2.3-70-g09d2