mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +02:00
23 lines
974 B
Desktop File
23 lines
974 B
Desktop File
[Unit]
|
|
Description=Argos server
|
|
Documentation=https://argos-monitoring.framasoft.org/
|
|
Requires=network.target postgresql.service
|
|
After=network.target postgresql.service
|
|
PartOf=postgresql.service
|
|
|
|
[Service]
|
|
User=argos
|
|
WorkingDirectory=/opt/argos/
|
|
EnvironmentFile=/etc/default/argos-server
|
|
ExecStartPre=/opt/argos/venv/bin/argos-monitoring server migrate
|
|
ExecStartPre=/opt/argos/venv/bin/argos-monitoring server reload-config
|
|
ExecStart=/opt/argos/venv/bin/gunicorn "argos_monitoring.server.main:get_application()" \
|
|
--workers $ARGOS_SERVER_WORKERS \
|
|
--worker-class uvicorn.workers.UvicornWorker \
|
|
--bind $ARGOS_SERVER_SOCKET \
|
|
--forwarded-allow-ips $ARGOS_SERVER_FORWARDED_ALLOW_IPS
|
|
ExecReload=/opt/argos/venv/bin/argos-monitoring server reload-config
|
|
SyslogIdentifier=argos-server
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|