]> git.pld-linux.org Git - packages/fetchmail.git/blobdiff - fetchmail.init
- updated to 5.8.8.
[packages/fetchmail.git] / fetchmail.init
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
This page took 0.083523 seconds and 4 git commands to generate.