Skip to content

Commit

Permalink
lsb on centos is very old.
Browse files Browse the repository at this point in the history
  • Loading branch information
graziano obertelli committed Apr 30, 2009
1 parent 44c766e commit 616f2b8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion tools/eucalyptus-cc.in
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tools/eucalyptus-cloud.in
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tools/eucalyptus-nc.in
Expand Up @@ -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
Expand Down

0 comments on commit 616f2b8

Please sign in to comment.