mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 03:20:12 -08:00
25 lines
541 B
Desktop File
25 lines
541 B
Desktop File
[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
|