aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-04-09 11:33:55 -0400
committerBill Nottingham <notting@redhat.com>2010-04-09 11:33:55 -0400
commita3d105dfafd6198c1457e87550e1b46945dd882d (patch)
tree145c4d3944f75649e23025489e1437163ebcb470 /rc.d/init.d
parentc0850b79ad27b2e68c21a1043465910321502c45 (diff)
downloadinitscripts-a3d105dfafd6198c1457e87550e1b46945dd882d.tar
initscripts-a3d105dfafd6198c1457e87550e1b46945dd882d.tar.gz
initscripts-a3d105dfafd6198c1457e87550e1b46945dd882d.tar.bz2
initscripts-a3d105dfafd6198c1457e87550e1b46945dd882d.tar.xz
initscripts-a3d105dfafd6198c1457e87550e1b46945dd882d.zip
Correct the fix for not clearing environment with runuser. (#203010, #564093)
This changes runuser to not use a login shell. We'll see what happens.
Diffstat (limited to 'rc.d/init.d')
-rw-r--r--rc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 150fbb25..2000d4af 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 -m -s /bin/bash - $user -c "$corelimit >/dev/null 2>&1 ; $*"
+ $cgroup $nice runuser -s /bin/bash $user -c "$corelimit >/dev/null 2>&1 ; $*"
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"