From a74f312263b4154414dea1bc494818b1bcbb6b9b Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Wed, 27 Jul 2011 23:07:15 +0200 Subject: Let background daemons show errors on stderr 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 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functions') diff --git a/functions b/functions index f68c088..eaa1374 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() { -- cgit v1.2.3