2021-11-30 06:42:44 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Radical API Daemon
|
|
|
|
After=network.target
|
|
|
|
StartLimitIntervalSec=0
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
WorkingDirectory=/otp/radical-api
|
|
|
|
User=radical-api
|
|
|
|
Group=radical-api
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=20 3
|
2021-12-01 06:52:14 +00:00
|
|
|
ExecStart=/usr/bin/env python3.9 -m gunicorn -k uvicorn.workers.UvicornWorker --log-config log.conf --bind 0.0.0.0:8000 api:api
|
2021-11-30 06:42:44 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi.user.target
|