summaryrefslogtreecommitdiff
path: root/.config/systemd/user
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user')
-rw-r--r--.config/systemd/user/git-auto-sync.service6
-rw-r--r--.config/systemd/user/git-auto-sync.timer10
2 files changed, 16 insertions, 0 deletions
diff --git a/.config/systemd/user/git-auto-sync.service b/.config/systemd/user/git-auto-sync.service
new file mode 100644
index 0000000..9f5014e
--- /dev/null
+++ b/.config/systemd/user/git-auto-sync.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=Automated Git Sync Service
+
+[Service]
+Type=oneshot
+ExecStart=%h/scripts/git-auto-sync.sh
diff --git a/.config/systemd/user/git-auto-sync.timer b/.config/systemd/user/git-auto-sync.timer
new file mode 100644
index 0000000..05ab6b2
--- /dev/null
+++ b/.config/systemd/user/git-auto-sync.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Automated Git Sync Timer
+
+[Timer]
+OnBootSec=5m
+OnUnitActiveSec=5m
+Unit=git-auto-sync.service
+
+[Install]
+WantedBy=timers.target