16 lines
376 B
SYSTEMD
16 lines
376 B
SYSTEMD
[Unit]
|
|
Description=Bridgehead (%i)
|
|
Requires=DOCKER_UNIT_NAME
|
|
|
|
[Service]
|
|
User=bridgehead
|
|
Restart=always
|
|
RestartSec=30
|
|
ExecStartPre=-/srv/docker/bridgehead/bridgehead preRun %i
|
|
ExecStart=/srv/docker/bridgehead/bridgehead start %i
|
|
ExecStop=/srv/docker/bridgehead/bridgehead stop %i
|
|
ExecStopPost=-/srv/docker/bridgehead/bridgehead postRun %i
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|