The definitive operational guide for managing the systemd services and timers that constitute the NomadPM platform on the ai6pack host.
The NomadPM platform is a multi-service system designed for resilience. The services have explicit dependencies to ensure they start in the correct order after a system reboot. This prevents the application from starting before its critical dependencies (like databases and AI models) are online.
The nomad_app.service is the central nervous system and is configured to wait for all other core services to be fully loaded and listening on their network ports before it starts. This is why you will often see "Waiting for..." messages in the logs during a system-wide restart; this is a sign of a healthy, patient startup, not an error.
This table provides a complete list of the custom services and timers for the platform.
| Unit File | Type | Purpose |
|---|---|---|
nomad_app.service | Service | The core backend application server (FastAPI/Uvicorn). |
vllm.service | Service | Serves the 120B "Scholar" AI model for high-level reasoning. |
vllm-engineer.service | Service | Serves the 20B "Librarian" AI model for memory and synthesis. |
embedding.service | Service | Serves the embedding model for the RAG system. |
nomad-executive.timer | Timer | Triggers the Executive Agent service on a recurring schedule. |
nomad-executive.service | Service | Runs the Executive Agent script to process jobs from the queue. |
nomad-prospector.timer | Timer | Triggers the Prospector Agent service on a recurring schedule. |
nomad-prospector.service | Service | Runs the Prospector Agent script to find stalled work. |
These are ordered examples for the most common operational scenarios.
Use this procedure after a reboot or when you need to restart the entire platform from a clean state.
nomad_app.service will ensure the correct startup order.
sudo systemctl restart vllm.service vllm-engineer.service embedding.service nomad_app.service
sudo systemctl restart nomad-executive.timer nomad-prospector.timer
sudo journalctl -u nomad_app.service -f
Use this procedure when you have modified a Python file in the /opt/nomadpm/backend/ directory (e.g., main.py or agent_logic.py).
.service or .timer file. If you only changed Python code, you can skip this step.
sudo systemctl daemon-reload
sudo systemctl restart nomad_app.service
sudo journalctl -u nomad_app.service -n 50 --no-pager
Use this procedure when a service is not behaving correctly (e.g., the UI is unresponsive or jobs are stuck in "pending").
sudo systemctl status nomad_app.service
sudo journalctl -u nomad_app.service -n 100 --no-pager
sudo systemctl restart nomad_app.service