Projet

Général

Profil

Révision 1d418a1e

ID1d418a1e3a12e103ca9d455e54551caf1ace6cd8
Parent 00737cf2
Enfant 2119206e

Ajouté par Kael Shipman il y a environ 7 ans

Added check for logfile existence at top of loop

Voir les différences:

plugins/logs/service_events
329 329
            continue
330 330
        fi
331 331

  
332
        # Make sure the logfile exists
333
        if [ ! -e "$logfile" ]; then
334
            >&2 echo "Logfile '$logfile' doesn't exist. Skipping."
335
            n=$((n+1))
336
            continue
337
        fi
338

  
332 339
        # Find which service this logfile is associated with
333 340
        service=
334 341
        while read -u 4 -r svc; do

Formats disponibles : Unified diff