[Bug 358351] New: Extend /etc/init.d/ fetchmail to be able to alter the fetch interval
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@forge.provo.novell.com ReportedBy: richard.bos@xs4all.nl QAContact: qa@suse.de 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c1
--- Comment #1 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c2
--- Comment #2 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User pcerny@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c3
Petr Cerny
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c4
--- Comment #4 from Richard Bos
Likely yes (11.0), but I'm working on more important bugs right now.
I can imagine. OTOH, the patch is very trivial and as such applying the patch, would result in bug less on your plate :) In case $2 (2nd option on the command of the /etc/init.d/fetchmail script) is empty there is no change at all to the behaviour of the script. Hence, the current behaviour of the /etc/init.d/fetchmail is not changed at all. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c5
--- Comment #5 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c6
--- Comment #6 from Richard Bos
Likely yes (11.0)
Till what date is it possible to enter this patch into the 11.0 openSUSE code? Looking at the 11.0 schedule: http://en.opensuse.org/Roadmap/11.0 there is only a month left, to enter patches like the one in this feature request isn't it? Or is it possible to commit the patch later than Beta2? -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c7
--- Comment #7 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c8
--- Comment #8 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User pcerny@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c9
--- Comment #9 from Petr Cerny
It comes basically down to: # osc submitreq show -d 46
Well, right now I'm getting "Diff not possible: HTTP Error 500: Internal Server Error". -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c10
--- Comment #10 from Richard Bos
I guess writing "Likely yes (11.0)" in comment #3 hasn't been the best formulation - sorry for that. Take it as plain "Yes." It will be in 11.0 along with other fetchmail fixes.
Thanks a lot for this comment (including the sorry). I'm very happy to read it (this way) :)) -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
User poeml@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c11
Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=358351
Peter Poeml
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c12
--- Comment #12 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c13
--- Comment #13 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User abauer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c14
--- Comment #14 from Andreas Bauer
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c15
--- Comment #15 from Richard Bos
the submitreq problem has been fixed But perhaps not in the correct way: https://bugzilla.novell.com/show_bug.cgi?id=379519#c5
-- 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.
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c16
--- Comment #16 from Richard Bos
https://bugzilla.novell.com/show_bug.cgi?id=358351
User pcerny@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c17
Petr Cerny
https://bugzilla.novell.com/show_bug.cgi?id=358351
User pcerny@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c18
Petr Cerny
https://bugzilla.novell.com/show_bug.cgi?id=358351
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=358351#c19
--- Comment #19 from Richard Bos
participants (1)
-
bugzilla_noreply@novell.com