Hi,
mein Getmail läuft hier teilweise mehrfach, wenn es grosse mails abholt.
Kann man das irgendwo beschränken, dass ein cronjob nur einmal läuft ?
getmail startet mehrfach
Re: getmail startet mehrfach
Sicher? Geht es aus dem getmail.log hervor? Mit welchen Optionen ist getmail eingerichtet? Hast du etwas wie das Folgende aktiviert?
getmail options hat geschrieben: max_bytes_per_session (integer) — if set, getmail will retrieve messages totalling up to this number of bytes before closing the session with the server. This can be useful if you do not want large messages causing large bursts of network traffic. Default: 0, which means not to enable this feature. Note that message sizes reported by the server are used, and therefore may vary slightly from the actual size on disk after message retrieval.
max_message_size (integer) — if set, getmail will not retrieve messages larger than this number of bytes. Default: 0, which means not to enable this feature.
max_messages_per_session (integer) — if set, getmail will process a maximum of this number of messages before closing the session with the server. This can be useful if your network or the server is particuarly unreliable. Default: 0, which means not to enable this feature.
Re: getmail startet mehrfach
Du kannst ein Lock für den zu startenden Cron-Job setzen und ggfls. sofort beenden.
der Eintrag in der crontab sollte dann so aussehen:
* * * * * /usr/bin/flock -n /tmp/fcj.lockfile getmail..
siehe auch man flock
der Eintrag in der crontab sollte dann so aussehen:
* * * * * /usr/bin/flock -n /tmp/fcj.lockfile getmail..
siehe auch man flock
Re: getmail startet mehrfach
Benutze statt 'getmail' den wrapper 'getmails',
der verhindert Mehrfachstarts:
Eine kleine Besonderheit zur Konfiguration
der verhindert Mehrfachstarts:
Code: Alles auswählen
PID_GETMAILS=$(pgrep -U $UID_BY_ID '^getmails$')
if [ "x$PID_GETMAILS" != "x$$" ]; then
echo "The getmails script is already running as PID=\"$PID_GETMAILS\" ." >&2
exit 1
fi
getmails is a wrapper script for getmail to retrieve mes‐
sages with multiple independent configuration files ~/.get‐
mail/config/* instead of a single ~/.getmailrc file.
mfg rendegast
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
-----------------------
Viel Eifer, viel Irrtum; weniger Eifer, weniger Irrtum; kein Eifer, kein Irrtum.
(Lin Yutang "Moment in Peking")
Re: getmail startet mehrfach
Hi,
danke für die Tips.
Getmails... teste ich mal an.
Das mit Floc finde ich auch gut zu wissen
Danke@all
danke für die Tips.
Getmails... teste ich mal an.
Das mit Floc finde ich auch gut zu wissen
Danke@all