systemd: add ExecStartPre directive
This commit is contained in:
parent
0747bb247b
commit
0229ed60ec
@ -11,8 +11,9 @@ Restart=always
|
|||||||
RestartSec=15s
|
RestartSec=15s
|
||||||
|
|
||||||
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
||||||
ExecStart=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} up --remove-orphans
|
ExecStartPre=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml down
|
||||||
ExecStop=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} stop
|
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
|
Nice=-14
|
||||||
IOSchedulingClass=1
|
IOSchedulingClass=1
|
||||||
|
Loading…
Reference in New Issue
Block a user