[Unit] Description=securityHeader Bot After=network.target [Service] ExecStart=/home/qt/.local/bin/pipenv run python3 main.py WorkingDirectory=/home/qt/qt-securityHeader-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="QTSECURITYBOT_GERRIT_USERNAME=foo" Environment="QTSECURITYBOT_GERRIT_PASSWORD=bar" Environment="QTSECURITYBOT_TEAMS_WEBHOOK_URL=" Environment="QTSECURITYBOT_TEAMS_ERROR_WEBHOOK_URL=" Environment="QTSECURITYBOT_PORT=8090" [Install] WantedBy=multi-user.target