gentoo-overlay/dev-util/drone/files/drone.service
Manuel Friedli 966bd973a7 dev-util/drone: Fixes #66
Package-Manager: Portage-3.0.8, Repoman-3.0.2
2020-11-14 19:59:10 +01:00

34 lines
711 B
Desktop File

[Unit]
Description=drone.io build server
Documentation=https://docs.drone.io/
AssertPathIsDirectory=/var/lib/drone
AssertPathIsReadWrite=/var/lib/drone
After=docker.service
After=mysqld.target
After=network.target
After=postgresql-9.3.service
After=postgresql-9.4.service
After=postgresql-9.5.service
After=postgresql-9.6.service
After=postgresql-10.service
After=postgresql-11.service
After=postgresql-12.service
Requires=docker.service
Requires=network.target
[Service]
User=drone
Group=drone
Environment="DOCKER_DRONE_CONFIG_FILE=/etc/drone/app.ini"
ExecStart=drone.sh
ExecStop=docker container stop drone
ExecStopPost=docker container rm drone
Restart=on-failure
[Install]
WantedBy=multi-user.target