]> git.pld-linux.org Git - packages/fetchmail.git/commitdiff
- fixed fetchmail-daemon
authorSebastian Zagrodzki <sebek@zagrodzki.net>
Fri, 8 Jun 2001 20:12:08 +0000 (20:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fetchmail.init -> 1.6
    fetchmail.sysconfig -> 1.2

fetchmail.init
fetchmail.sysconfig

index b319ae7bda7c66b9bee7e4f5e83d1656bed6e352..daecfbff54937e01dbe11a82fe7db29a18344f87 100644 (file)
@@ -14,6 +14,9 @@
 # Get service config - may override defaults
 [ -f /etc/sysconfig/fetchmail ] && . /etc/sysconfig/fetchmail
 
+# defaults
+[ -z "$POLL_INTERVAL" ] && POLL_INTERVAL=300
+
 # Get network config
 [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
 
@@ -31,7 +34,7 @@ case "$1" in
   start)
        if [ ! -f /var/lock/subsys/fetchmail ]; then
                msg_starting "fetchmail"
-               daemon fetchmail -f /etc/fetchmailrc
+               daemon fetchmail -d "$POLL_INTERVAL" -f /etc/fetchmailrc
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fetchmail
        else
index f0ae85adf6f9ecf5196be01693dbcfca23890826..387ab373aded3d9c353384ffc3071f3fff00fb34 100644 (file)
@@ -2,3 +2,6 @@
 
 # Define nice level for fetchmail
 SERVICE_RUN_NICE_LEVEL="+5"
+
+# Fetchmail daemon poll interval (in seconds)
+POLL_INTERVAL="300"
This page took 0.073661 seconds and 4 git commands to generate.