fix bug #23350
authorAleš Křenek <ljocha@ics.muni.cz>
Wed, 14 Feb 2007 10:33:03 +0000 (10:33 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Wed, 14 Feb 2007 10:33:03 +0000 (10:33 +0000)
org.glite.lb.server/config/startup
org.glite.lb.server/src/bkserverd.c

index 5122b2b..2c9bd45 100755 (executable)
@@ -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 \
index 3ee00ab..0eab69f 100644 (file)
@@ -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)) {