Correct init script

redirect stdout to /dev/null

Change-Id: I5baf0082a0344446f0514bfd167142f19bb17fca
This commit is contained in:
yaowei 2016-01-29 16:29:48 +08:00
parent a3f1f28545
commit 82e98b668c

View File

@ -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