mirror of
https://github.com/acedanger/shell.git
synced 2025-12-05 22:50:18 -08:00
feat: Implement comprehensive backup web application with Docker, systemd service, and Gunicorn support
This commit is contained in:
24
backup-web-app.service
Normal file
24
backup-web-app.service
Normal file
@@ -0,0 +1,24 @@
|
||||
[Unit]
|
||||
Description=Backup Web Application
|
||||
After=network.target
|
||||
Wants=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=acedanger
|
||||
Group=acedanger
|
||||
WorkingDirectory=/home/acedanger/shell
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
||||
Environment=BACKUP_ROOT=/mnt/share/media/backups
|
||||
Environment=FLASK_ENV=production
|
||||
Environment=PORT=5000
|
||||
ExecStart=/usr/bin/python3 /home/acedanger/shell/backup-web-app.py
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
KillMode=mixed
|
||||
TimeoutStopSec=5
|
||||
PrivateTmp=true
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user