aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-01-25 04:50:22 +0000
committerBill Nottingham <notting@redhat.com>2002-01-25 04:50:22 +0000
commit5f91fc795c783d58d602140a676967b66e9994e8 (patch)
tree2732d29db51aab0bfe77651d94f3971c8cec2b9c /rc.d/init.d/functions
parentce9b1cc2142093ad5342bebefadee1b72164670a (diff)
downloadinitscripts-5f91fc795c783d58d602140a676967b66e9994e8.tar
initscripts-5f91fc795c783d58d602140a676967b66e9994e8.tar.gz
initscripts-5f91fc795c783d58d602140a676967b66e9994e8.tar.bz2
initscripts-5f91fc795c783d58d602140a676967b66e9994e8.tar.xz
initscripts-5f91fc795c783d58d602140a676967b66e9994e8.zip
fix double echo when using --user (#54871)
Diffstat (limited to 'rc.d/init.d/functions')
-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 783bb815..d8bbea80 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -138,7 +138,7 @@ daemon() {
if [ -z "$user" ]; then
$nice initlog $INITLOG_ARGS -c "$*"
else
- $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*\"" && success $"$base startup" || failure $"$base startup"
+ $nice initlog $INITLOG_ARGS -c "su - $user -c \"$*\""
fi
[ "$?" -eq 0 ] && success $"$base startup" || failure $"$base startup"
}