[Unit] Description=qtWayland Bot After=network.target [Service] ExecStart=/home/qt/.local/bin/pipenv run python3 qtwaylandbot.py WorkingDirectory=/home/qt/qt-wayland-bot/src User=qt Group=qt Restart=always # It is recommended to set environment variables in an override.conf file # readable only to the user to protect secrets. Environment="QTWAYLANDBOT_GERRIT_USERNAME=foo" Environment="QTWAYLANDBOT_GERRIT_PASSWORD=bar" Environment="QTWAYLANDBOT_TEAMS_WEBHOOK_URL=" Environment="QTWAYLANDBOT_TEAMS_ERROR_WEBHOOK_URL=" Environment="QTWAYLANDBOT_PORT=8095" [Install] WantedBy=multi-user.target