[arch-projects] [INITSCRIPTS][PATCH 1/4] Let background daemons show errors on stderr

Sebastien Luttringer seblu at seblu.net
Tue Aug 9 06:50:45 EDT 2011


Daemon running in background should let error output to be printed.
Standart output is still hided to have a correct printing in default cases.

This will help to detect error in daemon runned in background.

This will also remove have_daemon call which is already called in start_daemon.

Signed-off-by: Sebastien Luttringer <seblu at seblu.net>
---
 functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index f42c21e..2048450 100644
--- a/functions
+++ b/functions
@@ -218,7 +218,7 @@ ck_depends() {
 
 start_daemon_bkgd() {
 	stat_bkgd "Starting $1"
-	have_daemon "$1" && (start_daemon "$1") &>/dev/null &
+	(start_daemon "$1") >/dev/null &
 }
 
 stop_daemon() {
-- 
Sebastien "Seblu" Luttringer



More information about the arch-projects mailing list