Hello SuSE folk, I have discovered that my cron is not working since I installed 8.2 about two months ago. Trying to figure out how to make it startup at boot time. Looked through Yast but nothing was obvious to me. While we are on the subject, does anyone have any favorite scripts, suggestions, other than getting rid of all of the old (huge) log files? (assuming I get it running of course :-) Examples ? Nothing really fancy. Been following the cron threads on this list Bob S.
On Thu, 2 Oct 2003 00:28:48 -0400
"Bob S."
Trying to figure out how to make it startup at boot time. Looked through Yast but nothing was obvious to me.
Use the run level editor in YaST.
While we are on the subject, does anyone have any favorite scripts, suggestions, other than getting rid of all of the old (huge) log files?(assuming I get it running of course :-)
Huh, that is what logrotate is for. Please refer to its manpage for the syntax of the config files (/etc/logrotate.conf and /etc/logrotate.d/*). Charles -- "If a machine couldn't run a free operating system, we got rid of it." -- Richard Stallman (Open Sources, 1999 O'Reilly and Associates)
On Thursday 02 October 2003 00:39, Charles Philip Chan wrote:
On Thu, 2 Oct 2003 00:28:48 -0400
"Bob S."
wrote: Trying to figure out how to make it startup at boot time. Looked through Yast but nothing was obvious to me.
Use the run level editor in YaST.
While we are on the subject, does anyone have any favorite scripts, suggestions, other than getting rid of all of the old (huge) log files?(assuming I get it running of course :-)
Huh, that is what logrotate is for. Please refer to its manpage for the syntax of the config files (/etc/logrotate.conf and /etc/logrotate.d/*).
OK, Thanks for replying. I have reviewed the man page and while informative, is not very explicit. Evidently I should have made myself a little clearer. Specifically, I have over 6 months of wtemp-(date) in /var/log I would like to get rid of other than by going in and doing it manually. I also have 3 sets of Xfree86 logs, and their backups, .0.log, .1.log, and .99.0.log dating back to July. I was asking how other list members handled this in a cron job. Any help would certainly be appreciated. Bob s.
I use a nightly cron job to check and make sure the distributed.net client is still running, start it if it has quit, and flush all of its completed work units to the server. I use another nightly cron job with a perl script to download the astronomy picture of the day. With chbg, this script could also be used to set the APOD as the background. Andy
The 03.10.02 at 00:28, Bob S. wrote:
I have discovered that my cron is not working since I installed 8.2 about two months ago. Trying to figure out how to make it startup at boot time. Looked through Yast but nothing was obvious to me.
Manually run, as root: rccron status If it doesn't say "running", then issue "rccron start". If it doesn't fail, then the link is missing for some reason, so that it wasn't enabled at boot (or crashed). Go to yast, "System/Runlevel Editor", select "Runlevel properties". Search for the cron line: Service |Running|B|0|1|2|3|5|6|S|Description -------------------+-------+-+-+-+-+-+-+-+-+--------------- .... cron |Yes | | | |2|3|5| | |Cron job service and use the "Set/Reset" button.
While we are on the subject, does anyone have any favorite scripts, suggestions, other than getting rid of all of the old (huge) log files? (assuming I get it running of course :-) Examples ? Nothing really fancy. Been following the cron threads on this list
logrotate, which runs daily, will do that for you. -- Cheers, Carlos Robinson
participants (4)
-
Andy Cowan
-
Bob S.
-
Carlos E. R.
-
Charles Philip Chan