[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
