mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-26 12:33:28 +00:00
21 lines
386 B
Plaintext
Executable File
21 lines
386 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
depends()
|
|
{
|
|
before acpid docker syslog chronyd
|
|
after 9pinit transfused
|
|
}
|
|
|
|
start()
|
|
{
|
|
cat /proc/cmdline | grep -q 'com.docker.driverDir' || exit 0
|
|
|
|
ebegin "Redirecting logs to host"
|
|
|
|
DRIVERDIR="/Mac$(cat /proc/cmdline | sed -e 's/.*com.docker.driverDir="//' -e 's/".*//')"
|
|
|
|
mount --bind "${DRIVERDIR}/log" /var/log
|
|
|
|
eend $? "Failed to redirect logs to host"
|
|
}
|