[Bug 221999] New: cron.daily not running daily
https://bugzilla.novell.com/show_bug.cgi?id=221999 Summary: cron.daily not running daily Product: openSUSE 10.2 Version: Beta 2 plus Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mkoenig@novell.com ReportedBy: ke@novell.com QAContact: qa@suse.de CC: aj@novell.com With the advent of MAX_NOT_RUN cron.daily behaves differently by default. Even on an update, it seems to be set to "5". Is this something new on 10.2? This feature seems to be missing from the changelog. cron and cron.daily is documented in the Reference Guide. We either need to revert this feature or add a note to the Release Notes. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|Other |Documentation -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |ke@novell.com ------- Comment #1 from mkoenig@novell.com 2006-11-17 04:22 MST ------- MAX_NOT_RUN has been introduced in SLES10 and has a default of 5 since then. This default is not in the cron package itself, the fillup template for cron is part of aaa_base. Where can I find the Reference Guide you mentioned? I still do not see what the problem is. Is this a bug or just not documented yet? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #2 from ke@novell.com 2006-11-17 05:17 MST ------- The reference guide is in the opensuse-manual_en package: /work/SRC/noarch/opensuse-manual_en/opensuse-reference_en.pdf Chapt. 15.1.2 I'd say it's a bug, because it obscures the meaning of "daily". At least, we should set the default of MAX_NOT_RUN to 1 (or 0) to make sure that daily stuff runs daily. If the user has different needs, he can change it on his own. Sorry, that I did not catch this issue earlier. We probably should add a note to the SLE release notes. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|ke@novell.com | Resolution| |INVALID ------- Comment #3 from mkoenig@novell.com 2006-11-17 07:20 MST ------- Note, that MAX_NOT_RUN is only used, if and only if DAILY_TIME has been set. DAILY_TIME is still "" in default configuration, so I do not see any problem. This has been introduced to run the cron.daily scripts at a specific time at the day (instead of 15 minutes after boot time). MAX_NOT_RUN has been introduced only for the case if the machine is not running, we may miss that time when cron.daily is supposed to run. This may happen for several days, but after 5 days we force the run of cron.daily scripts *even* if the time specified in DAILY_TIME is not current time. Of course this should be documented, but I don't consider this as a bug. The feature has been introduced to resolve #114761. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #4 from ke@novell.com 2006-11-17 07:34 MST ------- Thanks, now I understand how it is meant to work. I'm going to assign it to me for documentation (and another question). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC|aj@novell.com | AssignedTo|mkoenig@novell.com |ke@novell.com Severity|Major |Enhancement Status|REOPENED |ASSIGNED ------- Comment #5 from ke@novell.com 2006-11-17 07:35 MST ------- document new features -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |mkoenig@novell.com ------- Comment #6 from ke@novell.com 2006-11-17 07:41 MST ------- DAILY_TIME is still "" on my system (frechet.suse.de) and MAX_NOT_RUN is set to "5". Nevertheless cron.daily did not run since more than 24h: frechet:/suse/ke/src # uptime 3:40pm up 2 days 1:29, 13 users, load average: 0.28, 0.14, 0.11 frechet:/suse/ke/src # l /var/spool/cron/lastrun/ -rw-r--r-- 1 root root 0 Nov 15 07:00 cron.daily Do you have an idea what is going on here? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ke@novell.com |mkoenig@novell.com Severity|Enhancement |Normal Status|NEEDINFO |NEW Info Provider|mkoenig@novell.com | ------- Comment #7 from ke@novell.com 2006-11-23 08:23 MST ------- On my system, cron.daily does not run daily--still unchanged: ke@frechet:~/src> sudo ls -l /var/spool/cron/lastrun/ total 0 -rw-r--r-- 1 root root 0 Nov 15 07:00 cron.daily -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #8 from mkoenig@novell.com 2006-11-24 03:33 MST ------- I cannot reproduce this. Please restart cron and check the output of /var/spool/cron/lastrun again after approx. 15 minutes. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mkoenig@novell.com |seife@novell.com ------- Comment #10 from mkoenig@novell.com 2006-11-30 07:57 MST ------- --> reassigning to pm-utils maintainer -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #11 from seife@novell.com 2006-11-30 12:42 MST ------- on_ac_power does this: # Check for AC/DC/etc adapters for device in $(hal-find-by-capability --capability ac_adapter) ; do present=$(hal-get-property --udi $device --key ac_adapter.present) [ "$present" == "true" ] && exit 0 done # If there are no ac_adapters, check for batteries. hal-find-by-capability --capability battery >/dev/null 2>&1 && exit 1 # If there are no batteries assume AC. exit 0 Now it's time for the funny part: seife@frechet:~> hal-find-by-capability --capability ac_adapter seife@frechet:~> hal-find-by-capability --capability battery /org/freedesktop/Hal/devices/usb_device_46d_c50e_noserial Yes Karl, your machine has a battery! But no ac adapter :-) Unfortunately it is the battery in the BT Mouse and it won't be able to power your system for very long :-) I'll supply a fixed on_ac_power If this does not work, i assume it's a bug in HAL, but let's make sure. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #12 from seife@novell.com 2006-11-30 12:58 MST ------- Created an attachment (id=107751) --> (https://bugzilla.novell.com/attachment.cgi?id=107751&action=view) on_ac_power Karl, please try to replace your on_ac_power with this one. It is already in /tmp on frechet. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dkukawka@novell.com Status|NEW |ASSIGNED -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ke@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |225696 nThis| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 ------- Comment #13 from ke@novell.com 2006-12-04 01:54 MST ------- With the new on_ac_power it works for me! -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@novell.com Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #14 from seife@novell.com 2006-12-04 02:09 MST ------- Ok. I submitted a package with this fix. I will not drive an online update for this, unless i get more reports of problems. It will go into factory and if i have to do an update for pm-utils, this fix will of course be also included. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |koenig@linux.de ------- Comment #15 from mkoenig@novell.com 2006-12-05 08:21 MST ------- *** Bug 225614 has been marked as a duplicate of this bug. *** -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 seife@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |230005 nThis| | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=221999 behlert@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com