bridgehead/lib/systemd/bridgehead@.service

15 lines
323 B
SYSTEMD

[Unit]
Description=Bridgehead (%i)
Requires=docker.service
[Service]
User=bridgehead
Restart=always
RestartSec=30
ExecStartPre=-/srv/docker/bridgehead/bridgehead fixPermissions %i
ExecStart=/srv/docker/bridgehead/bridgehead start %i
ExecStop=/srv/docker/bridgehead/bridgehead stop %i
[Install]
WantedBy=multi-user.target