20 lines
653 B
Desktop File
20 lines
653 B
Desktop File
# SPDX-License-Identifier: CC0-1.0
|
|
# SPDX-FileCopyrightText: 2023 KDE e.V.
|
|
# SPDX-FileCopyrightText: 2023 Ben Cooksley <bcooksley@kde.org>
|
|
|
|
[Unit]
|
|
Description=buildpublisher
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
Type=exec
|
|
WorkingDirectory=%h/buildpublisher
|
|
Environment="PATH=%h/buildpublisher/.venv/bin:/usr/local/bin:/usr/bin:/bin"
|
|
ExecStart=%h/buildpublisher/.venv/bin/python buildpublisher.py -vv --id %u --config %h/.config/buildpublisher.ini
|
|
Restart=on-failure
|
|
# avoid too many restarts in a short time span if starting the service fails
|
|
# because the SFTP server is temporarily unavailable
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=default.target
|