[Unit] Description=pobsync queued backup worker After=network-online.target pobsync-web.service Wants=network-online.target [Service] Type=simple User=@POBSYNC_USER@ Group=@POBSYNC_GROUP@ WorkingDirectory=@POBSYNC_APP_DIR@ EnvironmentFile=@POBSYNC_ENV_FILE@ Environment=POBSYNC_ENV_FILE=@POBSYNC_ENV_FILE@ Environment=POBSYNC_SERVICE_USER=@POBSYNC_USER@ Environment=POBSYNC_SERVICE_GROUP=@POBSYNC_GROUP@ ExecStart=/bin/sh -c 'exec @POBSYNC_VENV_DIR@/bin/python manage.py run_pobsync_worker --loop --interval "${POBSYNC_WORKER_INTERVAL:-15}"' Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target