Created
January 11, 2015 22:19
-
-
Save steeef/6e197de4c92d3e078c09 to your computer and use it in GitHub Desktop.
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=ZNC | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
EnvironmentFile=/etc/default/znc | |
User=docker | |
Restart=on-failure | |
RestartSec=10 | |
ExecStartPre=-/usr/bin/docker kill znc | |
ExecStartPre=-/usr/bin/docker rm znc | |
ExecStart=/usr/bin/docker run --name znc -v $ZNC_HOME:/data -p $ZNC_PORT:6667 steeef/znc | |
ExecStop=-/usr/bin/docker stop znc | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment