Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=TechDesk IT Ticket System (Gunicorn + SocketIO)
|
||||
After=network.target mysql.service
|
||||
Wants=mysql.service
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/it-ticket-system
|
||||
Environment="FLASK_ENV=production"
|
||||
EnvironmentFile=/var/www/it-ticket-system/.env
|
||||
ExecStart=/var/www/it-ticket-system/venv/bin/gunicorn \
|
||||
--config gunicorn.conf.py \
|
||||
run:app
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
KillMode=mixed
|
||||
TimeoutStopSec=5
|
||||
PrivateTmp=true
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=it-ticket-system
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user