Skip to content

Instantly share code, notes, and snippets.

@andrew-aladev
Forked from samalba/etc-init.d-docker-compose
Last active April 26, 2022 23:27
Show Gist options
  • Save andrew-aladev/35db2552a594ed0e9ee08cf316d384ee to your computer and use it in GitHub Desktop.
Save andrew-aladev/35db2552a594ed0e9ee08cf316d384ee to your computer and use it in GitHub Desktop.
For gentoo and openrc
#!/sbin/openrc-run
EXE="/usr/libexec/docker/cli-plugins/docker-compose"
OPTS="-f /etc/conf.d/docker-compose.yml"
UPOPTS="-d"
start() {
ebegin "Starting docker compose"
$EXE $OPTS up $UPOPTS
eend $?
}
stop() {
ebegin "Stopping docker compose"
$EXE $OPTS stop
eend $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment