Error Handling
Error Handling
Common Errors
Error: "Already running"
- Cause: Stale PID file from crashed process
- Solution: Check if process actually running, remove stale PID file
Error: "Permission denied"
- Cause: Script not executable or wrong user
- Solution:
chmod +x service.sh, check file ownership
Error: Process dies immediately
- Cause: Command fails on startup
See sub-skills for full details.