aboutsummaryrefslogtreecommitdiff
path: root/scripts/systemd/roam-sync.service
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-10 18:13:03 -0500
committerCraig Jennings <c@cjennings.net>2026-06-10 18:13:03 -0500
commitfcf554a6be8b02aeb9c521ea5d7b7d86465aea0f (patch)
tree869fbe141ce36693325531651a8a4120c1de506d /scripts/systemd/roam-sync.service
parenta059be8650080864505b3d9274c6b3555419b9b2 (diff)
downloadrulesets-fcf554a6be8b02aeb9c521ea5d7b7d86465aea0f.tar.gz
rulesets-fcf554a6be8b02aeb9c521ea5d7b7d86465aea0f.zip
feat(kb): roam-sync script + timer units, old roam path repointed
Phase 0 of the agent KB spec: the org-roam KB now lives at ~/org/roam as a git repo on cjennings.net. roam-sync.sh (bats-tested: commit, rebase, push, conflict-abort) runs from a 15-minute systemd user timer; canonical unit files live in scripts/systemd/. Live references to the old ~/sync/org/roam path (the task-list pointer, the journal workflow, the notes template) repoint to ~/org/roam, and a transition symlink at the old location covers stragglers.
Diffstat (limited to 'scripts/systemd/roam-sync.service')
-rw-r--r--scripts/systemd/roam-sync.service9
1 files changed, 9 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