15 lines
228 B
Plaintext
15 lines
228 B
Plaintext
|
#!/bin/sh
|
||
|
LOGFILE=/shared/meutel/fetchmail.log
|
||
|
|
||
|
# check fetchmail running as daemon
|
||
|
|
||
|
if [ ! `pgrep fetchmail` ]; then
|
||
|
echo "fetchmail is not running"
|
||
|
fi
|
||
|
|
||
|
# check error in log
|
||
|
grep -3 error $LOGFILE
|
||
|
|
||
|
# clear log
|
||
|
echo > $LOGFILE
|