1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diacamma_ynh.git synced 2024-09-03 18:26:10 +02:00
diacamma_ynh/conf/systemd.service
Laurent Gay fbb8c534c1 correct
2023-12-12 16:18:11 +01:00

19 lines
No EOL
556 B
Desktop File

[Unit]
Description=Service for Diacamma (__APP__)
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
Environment="DJANGO_SETTINGS_MODULE=inst-__APP__.settings"
WorkingDirectory=__INSTALL_DIR__/
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn lucterios.framework.wsgi --bind 0.0.0.0:__PORT__ -w 1 --timeout 600 --access-logfile __INSTALL_DIR__/access.log --error-logfile __INSTALL_DIR__/error.log
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target