mirror of
/repos/baseimage-docker.git
synced 2026-02-27 17:41:59 +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:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user