File: //etc/systemd/system/hostbill-mcp.service
[Unit]
Description=HostBill MCP Server
After=network.target
[Service]
Type=simple
User=support
Group=support
WorkingDirectory=/home/support.panomity.com/mcp-server
ExecStart=/usr/bin/php -S 127.0.0.1:8765 http-server.php
Restart=always
RestartSec=5
StandardOutput=append:/home/support.panomity.com/mcp-server/logs/server.log
StandardError=append:/home/support.panomity.com/mcp-server/logs/error.log
# Security hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=read-only
ReadWritePaths=/home/support.panomity.com/mcp-server/logs
[Install]
WantedBy=multi-user.target