Created
August 22, 2014 15:45
-
-
Save ddeaguiar/720749add1cf3dac43a0 to your computer and use it in GitHub Desktop.
This file contains 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=subgun | |
[Service] | |
ExecStartPre=-/usr/bin/docker kill subgun-%i | |
ExecStartPre=-/usr/bin/docker rm subgun-%i | |
ExecStart=/usr/bin/docker run -rm -name subgun-%i -e SUBGUN_LISTEN=127.0.0.1:8080 -e [email protected] -e SUBGUN_API_KEY=key-779ru4cibbnhfa1qp7a3apyvwkls7ny7 -p 8080:8080 coreos/subgun | |
ExecStop=/usr/bin/docker kill subgun-%i | |
[X-Fleet] | |
X-Conflicts=subgun-http@*.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The CoreOS fleet deployment example is a great candidate for demonstrating the use of template files and systemd specifiers. It should really be updated to include that.