1.6 KiB
1.6 KiB
description, usage, examples
| description | usage | examples | ||
|---|---|---|---|---|
| Restart the Claude Nights Watch daemon to apply configuration changes | /nights-watch restart [--at TIME] |
|
Restart Nights Watch Daemon
Restart the Claude Nights Watch daemon by stopping the current instance and starting a new one. Useful after modifying task or rules files.
Usage
/nights-watch restart [OPTIONS]
Options
--at TIME- Schedule daemon to start monitoring at a specific time after restart- Format:
HH:MM(today) orYYYY-MM-DD HH:MM(specific date/time)
- Format:
What It Does
- Stops the currently running daemon gracefully
- Waits 2 seconds for clean shutdown
- Starts a new daemon instance
- Loads latest task.md and rules.md files
- Resumes monitoring with fresh configuration
When to Restart
Restart the daemon when you:
- Modified
task.mdand want to apply changes - Updated
rules.mdsafety constraints - Changed environment variables
- Troubleshooting daemon issues
- Want to reschedule start time
Examples
Simple restart:
/nights-watch restart
Restart with new schedule:
/nights-watch restart --at "09:00"
Implementation
${CLAUDE_PLUGIN_ROOT}/claude-nights-watch-manager.sh restart "$@"
Restart vs Stop/Start
- Restart: Automated stop + start in one command
- Stop/Start: Manual control over timing between operations
Both achieve the same result, restart is just more convenient.
See Also
/nights-watch stop- Stop daemon only/nights-watch start- Start daemon only/nights-watch status- Verify restart was successful