Add hermes-webapi systemd service
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Hermes WebAPI (FastAPI)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/hermes/.hermes/hermes-agent
|
||||
Environment=HERMES_WEBAPI_HOST=0.0.0.0
|
||||
Environment=HERMES_CORS_ORIGINS=*
|
||||
ExecStart=/home/hermes/.hermes/hermes-agent/venv/bin/python -m webapi
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user