2020-09-26 01:30:29 +02:00
|
|
|
[Unit]
|
|
|
|
Description=drone.io docker runner
|
|
|
|
Documentation=https://docs.drone.io/
|
|
|
|
|
2020-11-14 19:59:56 +01:00
|
|
|
After=docker.service
|
2020-09-26 01:30:29 +02:00
|
|
|
After=network.target
|
2020-11-14 19:59:56 +01:00
|
|
|
Requires=docker.service
|
2020-09-26 01:30:29 +02:00
|
|
|
Requires=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=drone-runner-docker
|
|
|
|
Group=drone-runner-docker
|
|
|
|
|
|
|
|
Environment="RUNNER_CONFIG_FILE=/etc/drone-runner-docker/app.ini"
|
|
|
|
|
|
|
|
ExecStart=drone-runner-docker.sh
|
|
|
|
ExecStop=docker container stop drone-runner
|
2020-10-08 21:14:42 +02:00
|
|
|
ExecStopPost=docker container rm drone-runner
|
2020-09-26 01:30:29 +02:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|