2023-12-11 17:56:26 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Service for Diacamma (__APP__)
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
|
|
|
|
2023-12-12 14:06:16 +01:00
|
|
|
Environment="DJANGO_SETTINGS_MODULE=inst-__APP__.settings"
|
2023-12-11 17:56:26 +01:00
|
|
|
WorkingDirectory=__INSTALL_DIR__/
|
2023-12-15 15:12:12 +01:00
|
|
|
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn lucterios.framework.wsgi --bind 127.0.0.1:__PORT__ -w 1 --timeout 600 --access-logfile __INSTALL_DIR__/access.log --error-logfile __INSTALL_DIR__/error.log
|
2023-12-11 17:56:26 +01:00
|
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=inherit
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=10
|
|
|
|
|
|
|
|
[Install]
|
2023-12-15 15:12:12 +01:00
|
|
|
WantedBy=multi-user.target
|