Restarting Netalertx Services
DevOps & Securityrestarting-netalertx-servicesRestarting Netalertx Services is an Agent Skill for devops & security published in the netalertx/NetAlertX repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Control NetAlertX services inside the devcontainer. Use this when asked to start backend, start frontend, start nginx, start php-fpm, start crond, stop services, restart services, or check if services are running.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/netalertx/NetAlertX/blob/HEAD/.github/skills/devcontainer-services/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/restarting-netalertx-services, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Devcontainer Services
You operate inside the devcontainer. Do not use docker exec.
Start Backend (Python)
/services/start-backend.sh
Backend runs with debugpy on port 5678 for debugging. Takes ~5 seconds to be ready.
Start Frontend (nginx + PHP-FPM)
/services/start-php-fpm.sh &
/services/start-nginx.sh &
Launches almost instantly.
Start Scheduler (CronD)
/services/start-crond.sh
Stop All Services
pkill -f 'php-fpm83|nginx|crond|python3' || true
Check Running Services
pgrep -a 'python3|nginx|php-fpm|crond'
Service Ports
- Frontend (nginx): 20211
- Backend API: 20212
- GraphQL: 20212
- Debugpy: 5678