From 451122048398d47668761f312fb3e2851c7f83da Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sun, 29 Jul 2012 13:41:36 +0200 Subject: [PATCH] Hide the stderr output of $(initctl version) in init_is_upstart. Closes: #682032 Reported-By: Michael Biebl --- init-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init-functions b/init-functions index 0bfea9e..5cb28dc 100644 --- a/init-functions +++ b/init-functions @@ -264,7 +264,7 @@ get_lsb_header_val () { # upstart job, it should generally exit non-zero in this case. init_is_upstart() { - if [ -x /sbin/initctl ] && /sbin/initctl version | /bin/grep -q upstart; then + if [ -x /sbin/initctl ] && /sbin/initctl version 2>/dev/null | /bin/grep -q upstart; then return 0 fi return 1 -- 2.30.2