Created
March 20, 2018 19:58
-
-
Save Xachman/2cfbf4c935aa7188b4ea325245a8e542 to your computer and use it in GitHub Desktop.
Restart docker-gen because for whatever reason the container wont start when the server is rebooted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=start docker gen after a docker restart | |
After=docker.service | |
Requires=docker.service | |
PartOf=docker.service | |
BindsTo=docker.service | |
[Service] | |
ExecStartPre=/bin/sleep 1 | |
ExecStart=/usr/bin/docker start nginx-gen | |
[Install] | |
WantedBy=docker.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment