Révision 1d418a1e
Added check for logfile existence at top of loop
| 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