xoxys.droneci/templates/etc/systemd/system/drone.service.j2

20 lines
482 B
Plaintext
Raw Normal View History

#jinja2:lstrip_blocks: True
2019-08-28 08:20:31 +00:00
{{ ansible_managed | comment }}
[Unit]
Description=Drone CI compose service
Requires=docker.service
After=docker.service
[Service]
Restart={{ droneci_restart_policy }}
WorkingDirectory={{ droneci_service_directory }}
2019-11-24 22:07:26 +00:00
ExecStartPre={{ droneci_docker_compose_bin }} down
ExecStartPre={{ droneci_docker_compose_bin }} rm -f
2019-11-24 22:07:26 +00:00
ExecStart={{ droneci_docker_compose_bin }} up
ExecStop={{ droneci_docker_compose_bin }} down
[Install]
WantedBy=multi-user.target