gentoo-overlay/dev-util/reposilite/files/reposilite.service
Manuel Friedli cdf6dfeceb dev-util/reposilite: Fixes #66
Package-Manager: Portage-3.0.8, Repoman-3.0.2
2020-11-14 20:00:57 +01:00

26 lines
578 B
Desktop File

[Unit]
Description=Reposilite Maven Repository hosting server
Documentation=https://reposilite.com/docs/about
AssertPathIsDirectory=/var/lib/reposilite-data
AssertPathIsReadWrite=/var/lib/reposilite-data
After=docker.service
After=network.target
Requires=docker.service
Requires=network.target
[Service]
User=reposilite
Group=reposilite
Environment="DOCKER_REPOSILITE_CONFIG_FILE=/etc/reposilite/app.ini"
ExecStart=reposilite.sh
ExecStop=docker container stop reposilite
ExecStopPost=docker container rm reposilite
Restart=on-failure
[Install]
WantedBy=multi-user.target