Merge pull request #200 from justincormack/runlevels

Fix startup issues
This commit is contained in:
Justin Cormack 2016-06-13 11:51:33 +01:00 committed by GitHub
commit 6625be95a5
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
depend()
{
after dev
need dev syslog
before docker
}

View File

@ -54,7 +54,7 @@ start()
if cat /proc/cmdline | grep -q 'com.docker.driverDir'
then
DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
grep -q "osxfs on /var/log" || mount --bind "${DRIVERDIR}/log" /var/log
grep -q "osxfs on /var/log" /proc/mounts || mount --bind "${DRIVERDIR}/log" /var/log
fi
# same default ulimit as boot2docker; if you want more can set at docker run time