systemd: use Environment for DRYness

This commit is contained in:
surtur 2022-09-28 16:28:38 +02:00
parent ab4e6375e0
commit ea51959b59
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -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