bridgehead/lib/systemd/bridgehead@.service

31 lines
780 B
SYSTEMD
Raw Normal View History

2022-07-12 11:06:19 +02:00
<<<<<<< HEAD
2022-02-16 09:59:53 +01:00
[Unit]
Description=Bridgehead (%i) Service
[Service]
Restart=always
RestartSec=30
WorkingDirectory=/srv/docker/bridgehead/
ExecStartPre=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env down'
ExecStart=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env up'
ExecStop=/bin/bash -c '`which docker-compose` -f %i/docker-compose.yml --env-file site-config/%i.env down'
[Install]
WantedBy=multi-user.target
2022-07-12 11:06:19 +02:00
=======
[Unit]
Description=Bridgehead (%i) Service
[Service]
2022-05-04 13:50:33 +02:00
User=bridgehead
Restart=always
RestartSec=30
ExecStart=/srv/docker/bridgehead/bridgehead start %i
ExecStop=/srv/docker/bridgehead/bridgehead stop %i
[Install]
WantedBy=multi-user.target
2022-07-12 11:06:19 +02:00
>>>>>>> version-1