aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.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 b8303f56..ffed07c0 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -132,7 +132,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*$bg"
else
- $nice initlog $INITLOG_ARGS -c "su $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup"
+ $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*$bg\"" && success $"$base startup" || failure $"$base startup"
fi
[ $? = 0 ] && success $"$base startup" || failure $"$base startup"
}