Background Daemon

The daemon runs in the background, polling your vault and automatically syncing files. Installed by default during dhd init.

Installation

PlatformServiceLocation
macOSlaunchd~/Library/LaunchAgents/com.daemon-hound.plist
Linuxsystemd~/.config/systemd/user/daemon-hound.service
WindowsTask SchedulerUser-level task

How it works

  1. Every 30 seconds, fetch from the Git remote
  2. Compare local vs. remote state
  3. Pull new files, restore to correct local paths
  4. Detect local changes and push
  5. On conflict: attempt smart merge; if unresolvable, halt

Management

Shell
dhd daemon run              # Run in foreground (debugging)
dhd daemon start            # Start background daemon
dhd daemon status           # Check state
dhd daemon stop             # Stop daemon
dhd daemon restart          # Restart daemon
dhd daemon logs -f          # Follow logs
dhd daemon errors -f        # Follow error logs
dhd daemon resume           # Resume after halt

Conflict behavior

When the daemon can smart-merge, it does. True conflicts halt the daemon:

Logging

Security

No file watching. Polling-only at 30s intervals. Watch-based mode planned for v1.2.0.

Removal

Shell
dhd cleanup --force

Stops and uninstalls the daemon, removes ~/.dh/, clears keychain. Does not affect the remote vault.