Created
February 24, 2017 06:23
-
-
Save onlurking/1928a71ace44e73bf84ab14cd250a5a8 to your computer and use it in GitHub Desktop.
OpenRC Docker Service
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
#!/usr/bin/openrc-run | |
# $Header: $ | |
start() { | |
ebegin "Starting ${SVCNAME}" | |
start-stop-daemon --start --background --exec /usr/bin/dockerd | |
eend $? | |
} | |
stop() { | |
ebegin "Shutting down ${SVCNAME}" | |
start-stop-daemon --stop --quiet --exec /usr/bin/dockerd | |
eend $? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment