Mailinglist Archive: opensuse-bugs (7441 mails)
| < Previous | Next > |
[Bug 358351] New: Extend /etc/init.d/ fetchmail to be able to alter the fetch interval
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Sat, 2 Feb 2008 13:39:25 -0700 (MST)
- Message-id: <bug-358351-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=358351
Summary: Extend /etc/init.d/fetchmail to be able to alter the
fetch interval
Product: openSUSE 10.3
Version: Final
Platform: 32bit
OS/Version: Linux
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: richard.bos@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Beta-Customer
Created an attachment (id=192907)
--> (https://bugzilla.novell.com/attachment.cgi?id=192907)
Patch to alter the fetch interval
Depending on the time of day and week; I change the fetch interval of the
fetchmail daemon, using cron. For example:
[/etc/init.d] # crontab -l
........
00 07 * * 1-5 /etc/init.d/fetchmail restart 600
00 08 * * 1-5 /etc/init.d/fetchmail restart 120
00 18 * * 1-5 /etc/init.d/fetchmail restart 600
00 23 * * 1-5 /etc/init.d/fetchmail restart 3600
Unfortenately this was not possible with the current fetchmail boot script.
A small change to the script made it possible to accomplish this.
# cat /var/tmp/fetchmail.diff
--- fetchmail.org 2008-02-02 19:01:57.000000000 +0100
+++ fetchmail 2008-02-02 19:09:57.000000000 +0100
@@ -109,6 +109,8 @@
rc_status
;;
start)
+ [[ -n "$2" ]] && FETCHMAIL_POLLING_INTERVAL=$2
+
echo -n "Starting fetchmail"
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
@@ -136,7 +138,7 @@
fi
$0 status
if test $? = 0; then
- $0 restart
+ $0 restart "$2"
else
rc_reset # Not running is not a failure.
fi
@@ -147,7 +149,7 @@
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
- $0 start
+ $0 start "$2"
# Remember status and be quiet
rc_status
I'll attach the patch. Hopefully this small patch can be incorperated in the
fetchmail rpm that openSUSE provides.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Summary: Extend /etc/init.d/fetchmail to be able to alter the
fetch interval
Product: openSUSE 10.3
Version: Final
Platform: 32bit
OS/Version: Linux
Status: NEW
Severity: Enhancement
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: richard.bos@xxxxxxxxx
QAContact: qa@xxxxxxx
Found By: Beta-Customer
Created an attachment (id=192907)
--> (https://bugzilla.novell.com/attachment.cgi?id=192907)
Patch to alter the fetch interval
Depending on the time of day and week; I change the fetch interval of the
fetchmail daemon, using cron. For example:
[/etc/init.d] # crontab -l
........
00 07 * * 1-5 /etc/init.d/fetchmail restart 600
00 08 * * 1-5 /etc/init.d/fetchmail restart 120
00 18 * * 1-5 /etc/init.d/fetchmail restart 600
00 23 * * 1-5 /etc/init.d/fetchmail restart 3600
Unfortenately this was not possible with the current fetchmail boot script.
A small change to the script made it possible to accomplish this.
# cat /var/tmp/fetchmail.diff
--- fetchmail.org 2008-02-02 19:01:57.000000000 +0100
+++ fetchmail 2008-02-02 19:09:57.000000000 +0100
@@ -109,6 +109,8 @@
rc_status
;;
start)
+ [[ -n "$2" ]] && FETCHMAIL_POLLING_INTERVAL=$2
+
echo -n "Starting fetchmail"
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
@@ -136,7 +138,7 @@
fi
$0 status
if test $? = 0; then
- $0 restart
+ $0 restart "$2"
else
rc_reset # Not running is not a failure.
fi
@@ -147,7 +149,7 @@
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
- $0 start
+ $0 start "$2"
# Remember status and be quiet
rc_status
I'll attach the patch. Hopefully this small patch can be incorperated in the
fetchmail rpm that openSUSE provides.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |