From 89183909b2965e6bc2991b2512161414d2028be8 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 11 Feb 2010 15:48:09 -0500 Subject: Pass -m to runuser, so the environment is not cleared. (#203010, #564093) There could conceivably be consequences to this, but it matches the behavior of the non-runuser case. --- rc.d/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d/init.d') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 2b117d58..150fbb25 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -260,7 +260,7 @@ daemon() { if [ -z "$user" ]; then $cgroup $nice /bin/bash -c "$corelimit >/dev/null 2>&1 ; $*" else - $cgroup $nice runuser -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*" + $cgroup $nice runuser -m -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*" fi [ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup" -- cgit v1.2.1