diff options
Diffstat (limited to 'scripts/systemd')
| -rw-r--r-- | scripts/systemd/roam-sync.service | 9 | ||||
| -rw-r--r-- | scripts/systemd/roam-sync.timer | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/scripts/systemd/roam-sync.service b/scripts/systemd/roam-sync.service new file mode 100644 index 0000000..e4ad502 --- /dev/null +++ b/scripts/systemd/roam-sync.service @@ -0,0 +1,9 @@ +# org-roam KB auto-sync (spec D8). Install: +# cp scripts/systemd/roam-sync.* ~/.config/systemd/user/ +# systemctl --user daemon-reload && systemctl --user enable --now roam-sync.timer +[Unit] +Description=Auto-sync the org-roam knowledge base repo + +[Service] +Type=oneshot +ExecStart=%h/code/rulesets/scripts/roam-sync.sh %h/org/roam diff --git a/scripts/systemd/roam-sync.timer b/scripts/systemd/roam-sync.timer new file mode 100644 index 0000000..3d65be0 --- /dev/null +++ b/scripts/systemd/roam-sync.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Auto-sync the org-roam knowledge base every 15 minutes + +[Timer] +OnBootSec=2min +OnUnitActiveSec=15min +RandomizedDelaySec=60 + +[Install] +WantedBy=timers.target |
