1
0
mirror of /repos/baseimage-docker.git synced 2025-12-30 08:01:31 +01:00

Merge pull request #6 from yukonlabs/master

Bypass runsvdir-start in order to preserve env
This commit is contained in:
Hongli Lai 2014-02-06 12:30:51 +01:00
commit 4a6ee64b63

View File

@ -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"))