From a4efcf5486611c2ae6d0d0805f106b4f05f45de0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 14 Feb 2007 10:33:03 +0000 Subject: [PATCH] fix bug #23350 --- org.glite.lb.server/config/startup | 3 ++- org.glite.lb.server/src/bkserverd.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/org.glite.lb.server/config/startup b/org.glite.lb.server/config/startup index 5122b2b..2c9bd45 100755 --- a/org.glite.lb.server/config/startup +++ b/org.glite.lb.server/config/startup @@ -34,6 +34,7 @@ start() fi fi + super="--super-users-file $GLITE_LOCATION/etc/LB-super-users" [ -z "$creds" ] && echo $0: WARNING: No credentials specified. Using default lookup which is dangerous. >&2 @@ -43,7 +44,7 @@ start() su - $GLITE_USER -c "$GLITE_LOCATION/bin/glite-lb-bkserverd \ --notif-il-sock=/tmp/glite-lb-notif.sock \ --notif-il-fprefix=/var/tmp/glite-lb-notif \ - $creds -i $pidfile $port" && echo " done" || echo " FAILED" + $super $creds -i $pidfile $port" && echo " done" || echo " FAILED" echo -n Starting glite-lb-notif-interlogd ... su - $GLITE_USER -c "$GLITE_LOCATION/bin/glite-lb-notif-interlogd \ diff --git a/org.glite.lb.server/src/bkserverd.c b/org.glite.lb.server/src/bkserverd.c index 3ee00ab..0eab69f 100644 --- a/org.glite.lb.server/src/bkserverd.c +++ b/org.glite.lb.server/src/bkserverd.c @@ -1376,8 +1376,9 @@ static int read_roots(const char *file) int cnt = 0; if (!roots) { - perror(file); - return 1; + syslog(LOG_WARNING,"%s: %m, continuing without --super-users-file",file); + dprintf(("%s: %s, continuing without --super-users-file\n",file,strerror(errno))); + return 0; } while (!feof(roots)) { -- 1.8.2.3