mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-12 15:39:18 +00:00
26 lines
694 B
Plaintext
Executable File
26 lines
694 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
export DOCKER_RAMDISK="true"
|
|
|
|
DOCKER_OPTS="${DOCKER_OPTS:--s aufs}"
|
|
command="${DOCKER_BINARY:-/usr/bin/docker}"
|
|
|
|
pidfile="${DOCKER_PIDFILE:-/run/${RC_SVCNAME}.pid}"
|
|
command_args="daemon -p \"${pidfile}\" ${DOCKER_OPTS}"
|
|
|
|
if cat /proc/cmdline | grep -q 'com.docker.groupDir'
|
|
then
|
|
GROUPDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.groupDir="//' -e 's/".*//')"
|
|
[ -d "${GROUPDIR}" ] && DOCKER_LOGFILE="${GROUPDIR}/${RC_SVCNAME}.log"
|
|
fi
|
|
|
|
DOCKER_LOGFILE="${DOCKER_LOGFILE:-/var/log/${RC_SVCNAME}.log}"
|
|
start_stop_daemon_args="--background \
|
|
--stderr \"${DOCKER_LOGFILE}\" --stdout \"${DOCKER_LOGFILE}\""
|
|
|
|
depend()
|
|
{
|
|
after 9pudc
|
|
before chronyd
|
|
}
|