We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd80be commit b034c09Copy full SHA for b034c09
server/scripts/run-getmail.sh
@@ -8,6 +8,12 @@ rcfiles="$rcfiles -r $file"
8
fi
9
done
10
#echo $rcfiles
11
-if [ "$rcfiles" != "" ]; then
12
-exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
+if [ -f /tmp/.getmail_lock ]; then
+ echo 'Found getmail lock file /tmp/.getmail_lock, we quit here.'
13
+else
14
+ touch /tmp/.getmail_lock
15
+ if [ "$rcfiles" != "" ]; then
16
+ exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles
17
+ fi
18
+ rm -f /tmp/.getmail_lock
19
0 commit comments