[Unit]
Description=Drone Task Manager
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User={{USER}}
Group={{USER}}
WorkingDirectory={{WORKING_DIR}}
Environment="PATH={{VENV_BIN}}:/usr/local/bin:/usr/bin:/bin"
Environment="PYTHONUNBUFFERED=1"
ExecStart={{VENV_BIN}}/python {{WORKING_DIR}}/main.py --host 0.0.0.0 --port 80
Restart=always
RestartSec=5
KillMode=process
AmbientCapabilities=CAP_NET_BIND_SERVICE
StandardOutput=journal
StandardError=journal
SyslogIdentifier=drone-task-manager

[Install]
WantedBy=multi-user.target
