Skip to content
Snippets Groups Projects
Commit 76263c59 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

ansible: Add missing service files for fja.fi

parent 066dc973
No related branches found
No related tags found
No related merge requests found
[Unit]
Description=FJA web frontend
[Service]
Type=simple
WorkingDirectory=/home/fja/eval
Environment=PYTHONPATH=/home/fja/eval
ExecStart=/usr/bin/uwsgi -s /run/uwsgi/fjaweb.socket \
--manage-script-name --plugin python3 \
--mount '/=evalweb:create_app()'
User=fja
Group=www-data
Restart=always
RestartSec=2
TimeoutStopSec=300
CPUAccounting=true
MemoryAccounting=true
Nice=10
# quota for one CPU
CPUQuota=10%
MemoryHigh=800M
MemoryMax=1G
[Unit]
StartLimitBurst=0
StartLimitIntervalSec=0
[Unit]
Description=Socket for FJA web frontend
[Socket]
ListenStream=/run/uwsgi/fjaweb.socket
SocketUser=fja
SocketGroup=www-data
SocketMode=0660
[Install]
WantedBy=sockets.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment