Last active
June 28, 2017 19:54
-
-
Save kmurudi/8d43bccacf506f9d92c721a228730f08 to your computer and use it in GitHub Desktop.
systemd script plain
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=Lab guide container | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
Restart=on-failure | |
RestartSec=15 | |
#EnvironmentFile=/etc/sysconfig/workshopper | |
#ExecStartPre=-/usr/bin/docker kill workshopper | |
#ExecStartPre=-/usr/bin/docker rm workshopper | |
#ExecStartPre=/usr/bin/docker create --name=workshopper osevg/workshopper:0.1 | |
ExecStart=/usr/bin/docker run --name=workshopper -p 80:8080 --env-file /etc/sysconfig/workshopper osevg/workshopper:0.1 env | |
Type=notify | |
NotifyAccess=all | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment