Background Service Manager Best Practices

Sub-skill of background-service-manager: Best Practices.

vamseeachanta Updated

File contents

Best Practices

Best Practices

  1. Always use PID files - Track running processes reliably
  2. Implement graceful shutdown - Handle SIGTERM properly
  3. Log to files - Use /tmp/ or dedicated log directory
  4. Check before start - Prevent duplicate instances
  5. Clean stale PIDs - Remove orphaned PID files
  6. Add status monitoring - Show resource usage
  7. Support restart - Stop + start in one command
  8. Environment variables - Configure via env, not hardcoded

vamseeachanta/workspace-hub/tree/main/.agents/skills/_archive/operations/devtools/background-service-manager/best-practices commit 906eec80f8

Frequently asked questions

npx skillmds@latest add vamseeachanta/background-service-manager-best-practices