Nm Egregore Install Watchdog
by @athola
Installs egregore watchdog daemon via launchd or systemd for autonomous relaunching
clawhub install nm-egregore-install-watchdogπ About This Skill
name: install-watchdog description: | Install the egregore watchdog daemon using the OS-native scheduler. Creates a launchd plist (macOS) or systemd timer (Linux) that checks every 5 minutes if egregore needs relaunching version: 1.9.4 metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/egregore", "emoji": "\ud83e\udd9e"}} source: claude-night-market source_plugin: egregore
> Night Market Skill β ported from claude-night-market/egregore. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
Install Watchdog
Overview
Installs a persistent daemon that monitors the egregore process and relaunches it when needed. The daemon uses the OS-native scheduler (launchd on macOS, systemd on Linux) to run a watchdog script every 5 minutes.
The watchdog script checks:
If all conditions are met, it launches a new egregore session.
When To Use
egregore init)When NOT To Use
Installation Steps
1. Detect the operating system
OS=$(uname -s)
2. Run the appropriate installer
macOS (launchd):
bash plugins/egregore/scripts/install_launchd.sh
This script creates a plist at
~/Library/LaunchAgents/com.egregore.watchdog.plist
that runs the watchdog script every 300 seconds (5 minutes).
Linux (systemd):
bash plugins/egregore/scripts/install_systemd.sh
This script creates a systemd timer and service unit at
~/.config/systemd/user/ that fires every 5 minutes.
3. Verify installation
macOS:
launchctl list | grep egregore
Expected output: a line containing
com.egregore.watchdog with a PID or - status.
Linux:
systemctl --user status egregore-watchdog.timer
Expected output: active (waiting) status.
4. Confirm to the user
Report the installation result, the schedule interval, and the log file location:
~/.egregore/watchdog.logjournalctl --user -u egregore-watchdogUninstall Command
To remove the watchdog, run:
Skill(egregore:uninstall-watchdog)
Or invoke the uninstall skill directly via the command
/egregore:uninstall-watchdog.
Troubleshooting
loginctl enable-linger $USER to enable user services
without an active login session.
launchctl list or
systemctl --user list-timers).
β‘ When to Use
π Tips & Best Practices
loginctl enable-linger $USER to enable user services
without an active login session.
launchctl list or
systemctl --user list-timers).