From: Chris <cpo...@em...> - 2017-02-16 22:24:13
|
On Thu, 2017-02-16 at 22:35 +0100, Matthias Andree wrote: > Am 16.02.2017 um 14:45 schrieb Chris: > > > > > > > > On Sun, 2017-02-12 at 16:25 +0100, Matthias Andree wrote: > > > > > > > > while [ -e /path/to/fetchmail.pid ] ; do sleep 1 ; done > > Adding that one line to the script got it to run perfectly > > Matthias, > > thanks so much for the help > > Hi Chris, > > good to know that, but you need to keep an eye on it if you're using > it > as is. > If the previous fetchmail instance *crashed* and left the > fetchmail.pid > file behind, this loop will wait forever without starting fetchmail > anew. > > Cheers, > Matthias > Ah, good to know Matthias, the cronjob runs at midnight but I check in the morning to make sure the new log is being written to. -- Chris KeyID 0xE372A7DA98E6705C 31.11972; -97.90167 (Elev. 1092 ft) 16:21:08 up 13 days, 8:19, 2 users, load average: 1.04, 0.81, 0.80 Description: Ubuntu 16.04.2 LTS, kernel 4.4.0-62-generic |