From 8de2ccc94bf73c09afcd0e93e2a524004c933bcd Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Mon, 9 Jun 2025 21:10:07 +0300 Subject: [PATCH] systemd: add timers --- config/systemd/user/notes.service | 6 ++++++ config/systemd/user/notes.timer | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 config/systemd/user/notes.service create mode 100644 config/systemd/user/notes.timer diff --git a/config/systemd/user/notes.service b/config/systemd/user/notes.service new file mode 100644 index 0000000..af610bd --- /dev/null +++ b/config/systemd/user/notes.service @@ -0,0 +1,6 @@ +[Unit] +Description=sync notes + +[Service] +Type=oneshot +ExecStart=/home/olex/org/upd.sh diff --git a/config/systemd/user/notes.timer b/config/systemd/user/notes.timer new file mode 100644 index 0000000..41640ab --- /dev/null +++ b/config/systemd/user/notes.timer @@ -0,0 +1,9 @@ +[Unit] +Description=sync notes at 17:00 daily + +[Timer] +OnCalendar=*-*-* 17:00:00 +Persistent=true + +[Install] +WantedBy=timers.target