From 82e98b668c4e867f4541a88a2ee3bd8a4e644850 Mon Sep 17 00:00:00 2001 From: yaowei Date: Fri, 29 Jan 2016 16:29:48 +0800 Subject: [PATCH] Correct init script redirect stdout to /dev/null Change-Id: I5baf0082a0344446f0514bfd167142f19bb17fca --- etc/init.d/steth-agent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/init.d/steth-agent b/etc/init.d/steth-agent index 1146c38..80710b4 100755 --- a/etc/init.d/steth-agent +++ b/etc/init.d/steth-agent @@ -22,7 +22,7 @@ lockfile=/var/lock/subsys/$prog-agent start() { [ -x $exec ] || exit 5 echo -n $"Starting $prog: " - daemon --user neutron --pidfile $pidfile "$exec & echo \$! > $pidfile" + daemon --user neutron --pidfile $pidfile "$exec &>/dev/null & echo \$! > $pidfile" retval=$? echo [ $retval -eq 0 ] && touch $lockfile