You are not logged in.

#1 2005-02-21 05:00:25

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

mpd rc.d start-up output

Is all verbose output from rc.d scripts sent to /dev/null as standard?  If this is the case shouldn't this be the better?

 case "$1" in
   start)
     stat_busy "Starting Music Player Daemon"
-    [ -z "$PID" ] && /usr/bin/mpd /etc/mpd.conf
+    [ -z "$PID" ] && /usr/bin/mpd /etc/mpd.conf &> /dev/null
     if [ $? -gt 0 ]; then
       stat_fail
     else

Offline

#2 2005-02-21 05:02:42

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: mpd rc.d start-up output

that is how i setup my daemons..


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2005-02-21 09:15:37

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: mpd rc.d start-up output

dibblethewrecker wrote:

Is all verbose output from rc.d scripts sent to /dev/null as standard?  If this is the case shouldn't this be the better?

 case "$1" in
   start)
     stat_busy "Starting Music Player Daemon"
-    [ -z "$PID" ] && /usr/bin/mpd /etc/mpd.conf
+    [ -z "$PID" ] && /usr/bin/mpd /etc/mpd.conf &> /dev/null
     if [ $? -gt 0 ]; then
       stat_fail
     else

yupp, actually it is the standard ... file a bug report

-neri

Offline

#4 2005-02-22 09:13:29

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: mpd rc.d start-up output

wo-hoo! i love bug spotting!

Offline

Board footer

Powered by FluxBB