systemd: use Environment for DRYness
This commit is contained in:
parent
ab4e6375e0
commit
ea51959b59
@ -8,8 +8,9 @@ Slice=drone.slice
|
|||||||
Delegate=yes
|
Delegate=yes
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
ExecStart=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml up --remove-orphans
|
Environment=COMPOSE_FILE=/etc/drone/docker-compose.yml
|
||||||
ExecStop=/usr/bin/docker-compose -p drone -f /etc/drone/docker-compose.yml stop
|
ExecStart=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} up --remove-orphans
|
||||||
|
ExecStop=/usr/bin/docker-compose -p drone -f ${COMPOSE_FILE} stop
|
||||||
|
|
||||||
Nice=-14
|
Nice=-14
|
||||||
IOSchedulingClass=1
|
IOSchedulingClass=1
|
||||||
|
Loading…
Reference in New Issue
Block a user