systemd: add ExecStartPre directive

This commit is contained in:
surtur 2022-09-28 16:31:50 +02:00
parent 0747bb247b
commit 0229ed60ec
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

View File

@ -11,8 +11,9 @@ Restart=always
RestartSec=15s
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
ExecStart=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} up --remove-orphans
ExecStop=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} stop
ExecStartPre=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml down
ExecStart=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml up --remove-orphans
ExecStop=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml stop
Nice=-14
IOSchedulingClass=1