mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
Bypass runsvdir-start in order to preserve env
runsvdir-start clears the environment, which wipes out any environment variables passed in when the container starts. This patch bypasses runsvdir-start and calls runsvdir directly, preserving the current environment.
This commit is contained in:
parent
c844956bab
commit
892dcc7ca4
@ -72,7 +72,7 @@ if is_exe("/etc/rc.local"):
|
||||
# Start runit.
|
||||
signal.signal(signal.SIGCHLD, reap_child)
|
||||
print("*** Booting runit...")
|
||||
pid = os.spawnl(os.P_NOWAIT, "/usr/sbin/runsvdir-start", "/usr/sbin/runsvdir-start")
|
||||
pid = os.spawnl(os.P_NOWAIT, "/usr/bin/runsvdir", "/usr/bin/runsvdir", "-P", "/etc/service", "log: %s" % ('.' * 395))
|
||||
print("*** Runit started as PID %d" % pid)
|
||||
signal.signal(signal.SIGTERM, lambda signum, frame: stop_child_process("runit"))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user