From 616f2b8f0431406258a1d0ec0bab349b27391da0 Mon Sep 17 00:00:00 2001 From: graziano obertelli Date: Wed, 29 Apr 2009 17:13:19 -0700 Subject: [PATCH] lsb on centos is very old. --- tools/eucalyptus-cc.in | 5 ++++- tools/eucalyptus-cloud.in | 5 ++++- tools/eucalyptus-nc.in | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/eucalyptus-cc.in b/tools/eucalyptus-cc.in index 29378164778..b7973a0f0c3 100755 --- a/tools/eucalyptus-cc.in +++ b/tools/eucalyptus-cc.in @@ -25,7 +25,10 @@ WE_HAVE_LSB="N" if [ -e /lib/lsb/init-functions ]; then . /lib/lsb/init-functions - WE_HAVE_LSB="Y" + # very old lsb don't have the functions we need + if type log_daemon_msg > /dev/null 2> /dev/null ; then + WE_HAVE_LSB="Y" + fi fi if [ "$EUID" != "0" ]; then diff --git a/tools/eucalyptus-cloud.in b/tools/eucalyptus-cloud.in index 533681daf79..e62e1874f10 100755 --- a/tools/eucalyptus-cloud.in +++ b/tools/eucalyptus-cloud.in @@ -35,7 +35,10 @@ fi WE_HAVE_LSB="N" if [ -e /lib/lsb/init-functions ]; then . /lib/lsb/init-functions - WE_HAVE_LSB="Y" + # very old lsb don't have the functions we need + if type log_daemon_msg > /dev/null 2> /dev/null ; then + WE_HAVE_LSB="Y" + fi fi # I just wanted to set PATH to be the system PATH, but if a user install diff --git a/tools/eucalyptus-nc.in b/tools/eucalyptus-nc.in index 7c95edfb0e6..82940e48f30 100755 --- a/tools/eucalyptus-nc.in +++ b/tools/eucalyptus-nc.in @@ -25,7 +25,10 @@ WE_HAVE_LSB="N" if [ -e /lib/lsb/init-functions ]; then . /lib/lsb/init-functions - WE_HAVE_LSB="Y" + # very old lsb don't have the functions we need + if type log_daemon_msg > /dev/null 2> /dev/null ; then + WE_HAVE_LSB="Y" + fi fi if [ "$EUID" != "0" ]; then