Add Git auto-sync for multi-device vault syncing
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
[Unit]
|
||||
Description=Git Auto-Sync for Second Brain Vault
|
||||
After=network.target
|
||||
Documentation=file:///workspace/second-brain/README.md
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=intense
|
||||
WorkingDirectory=/workspace/second-brain
|
||||
|
||||
# Environment
|
||||
Environment="VAULT_PATH=/workspace/second-brain"
|
||||
Environment="COMMIT_AUTHOR=Bumblebee AI"
|
||||
Environment="COMMIT_EMAIL=bumblebee@clawd.local"
|
||||
Environment="POLL_INTERVAL=30"
|
||||
|
||||
# Run auto-sync script
|
||||
ExecStart=/bin/bash /workspace/second-brain/git-auto-sync.sh
|
||||
|
||||
# Restart policy
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StartLimitInterval=300
|
||||
StartLimitBurst=5
|
||||
|
||||
# Resource limits
|
||||
MemoryLimit=64M
|
||||
CPUQuota=10%
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=git-sync
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user