Skip to content

Instantly share code, notes, and snippets.

@kmurudi
Last active June 28, 2017 19:54
Show Gist options
  • Save kmurudi/8d43bccacf506f9d92c721a228730f08 to your computer and use it in GitHub Desktop.
Save kmurudi/8d43bccacf506f9d92c721a228730f08 to your computer and use it in GitHub Desktop.
systemd script plain
[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