systemd: add ExecStartPre directive
This commit is contained in:
parent
0747bb247b
commit
0229ed60ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user