Advanced
Auto-Restart Behavior
Auto-Restart Behavior
When auto-restart is enabled for a service, DevDock monitors the process and automatically restarts it if it exits unexpectedly.
Exponential Backoff
To prevent rapid restart loops (e.g., if a service crashes immediately on startup), DevDock uses an exponential backoff strategy:
Attempt 1: Restart immediately
Attempt 2: Wait 1 second
Attempt 3: Wait 2 seconds
Attempt 4: Wait 4 seconds
Attempt 5: Wait 8 seconds
...
Maximum wait: 30 seconds
Reset Conditions
The backoff timer resets when:
- The service runs successfully for more than 60 seconds
- You manually stop and restart the service
- You edit the service configuration
Crash Detection
DevDock distinguishes between:
- Intentional stops: When you click Stop - no restart triggered
- Crashes: When the process exits with a non-zero code - auto-restart triggered
- Graceful exits: When the process exits with code 0 - behavior depends on your configuration