Skip to content
Snippets Groups Projects
Commit d8db22b9 authored by Jan Philipp Timme's avatar Jan Philipp Timme Committed by Elke Kreim
Browse files

Fix service unit to do automatic restarts on crashes

parent ad5030af
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ Wants=network-online.target ...@@ -5,7 +5,8 @@ Wants=network-online.target
After=remote-fs.target After=remote-fs.target
[Service] [Service]
ExecStartPre=-/usr/bin/docker kill goemaximapool Restart=on-failure
RestartSec=1s
ExecStart=/usr/bin/docker run --rm --name goemaximapool --publish 0.0.0.0:8080:8080 goemaxima:2020120600-dev ExecStart=/usr/bin/docker run --rm --name goemaximapool --publish 0.0.0.0:8080:8080 goemaxima:2020120600-dev
[Install] [Install]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment