From 8534b1fc85109a6a6805ecf1a4f9ba2945c70659 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/functions') diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index c8870d3a..54a34837 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