xoxys.droneci/templates/etc/systemd/system/drone.service.j2
Robert Kaussow 5d679fd9b1
All checks were successful
continuous-integration/drone/push Build is passing
fix typo
2019-11-24 23:29:06 +01:00

21 lines
576 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Drone CI compose service
Requires=docker.service
After=docker.service
[Service]
Restart={{ droneci_restart_policy }}
WorkingDirectory={{ droneci_service_directory }}
ExecStartPre={{ droneci_docker_compose_bin }} pull --quiet --ignore-pull-failures
ExecStart={{ droneci_docker_compose_bin }} up --remove-orphans
ExecStop={{ droneci_docker_compose_bin }} down --remove-orphans
ExecReload={{ droneci_docker_compose_bin }} pull --quiet --ignore-pull-failures
[Install]
WantedBy=multi-user.target