31 lines
No EOL
730 B
Desktop File
31 lines
No EOL
730 B
Desktop File
[Unit]
|
|
Description=AgentHub - AI Agent Management System
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www-data
|
|
Group=www-data
|
|
WorkingDirectory=/var/www/html/agent_tracker
|
|
Environment=PATH=/var/www/html/agent_tracker/venv/bin
|
|
ExecStart=/var/www/html/agent_tracker/venv/bin/uvicorn main:app --host 0.0.0.0 --port 8038
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=agenthub
|
|
|
|
# Security settings
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ReadWritePaths=/var/www/html/agent_tracker
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |