mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 00:11:06 +00:00
eee400f39f
busybox's init uses /etc/inittab for configuration just like sysvinit, however it doesn't use any runlevels. the tty part of inittab is appended to "/dev/", and it becomes connected to the stdout of the spawned process Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
23 lines
446 B
Bash
Executable File
23 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "$GOSUPER_SOCKET" ]; then
|
|
export GOSUPER_SOCKET=/var/run/resin/gosuper.sock
|
|
fi
|
|
|
|
if [ -z "$DOCKER_SOCKET" ]; then
|
|
export DOCKER_SOCKET=/run/docker.sock
|
|
fi
|
|
|
|
if [ -z "$HOST_PROC" ]; then
|
|
export HOST_PROC=/mnt/root/proc
|
|
fi
|
|
|
|
export DBUS_SYSTEM_BUS_ADDRESS="unix:path=/mnt/root/run/dbus/system_bus_socket"
|
|
|
|
# If DOCKER_ROOT isn't set then default it
|
|
if [ -z "${DOCKER_ROOT}" ]; then
|
|
DOCKER_ROOT=/mnt/root/var/lib/rce
|
|
fi
|
|
|
|
exec $@
|