LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2012, 09:05 PM   #1
Rich Thomson
LQ Newbie
 
Registered: Mar 2006
Location: San Diego
Distribution: fedora 5-15, centos 5.x,Knoppix ,openSuse
Posts: 9

Rep: Reputation: 0
Cron stops openSuse 10.2


openSuse 10.2. chkconfig has cron "on". Boot the system, service cron status shows "unused". service cron start shows "running". exit out of root, su back in, service cron status shows "unused" again. Same problem on hundreds of systems (because all from the same image, naturally). Not sure if it was always this way or if I just noticed it. With this version of the O/S it is cron, instead of crond. google searches not enlightening. ideas to pursue?

Resolved - 10.2 does not support the @reboot option.

Last edited by Rich Thomson; 08-07-2012 at 12:25 PM. Reason: problem resolved
 
Old 08-08-2012, 08:07 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Quote:
Originally Posted by Rich Thomson View Post
Resolved - 10.2 does not support the @reboot option.
Then it must be cronie or something as Vixie-cron does support it. BTW you could probably emulate "@reboot" using /etc/rc.d/rc.local by adding a line
Code:
/usr/lib/cron/run-crons &
if you want to run all cronjobs (though that would be odd) or
Code:
/path/to/jobfile &
if you just want to run a single job or
Code:
/usr/bin/at -f /path/to/jobfile now
if you have the "at" service running at boot and prefer handing it off that way. If you use /etc/rc.d/rc.local across different SuSE versions and releases then you could prefix a check so this only affects 10.2 this way
Code:
grep -q -m1 '.10\.2' /etc/issue /etc/*release && /usr/bin/at -f /path/to/jobfile now
HTH
 
Old 08-09-2012, 07:20 AM   #3
Rich Thomson
LQ Newbie
 
Registered: Mar 2006
Location: San Diego
Distribution: fedora 5-15, centos 5.x,Knoppix ,openSuse
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the tips, I'll try those. Turns out the problem isn't cron @reboot, it's something in the job that turns cron off. I'll figure that out.
 
  


Reply

Tags
cron, opensuse102, stops


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail from cron with error at usr/lib/sa/sa2 -A (Opensuse 10.1) mosmuller Linux - Server 6 12-20-2011 11:55 AM
opensuse 11.3 32bit os stops booting and requests to manually run fsck sirius57 SUSE / openSUSE 1 09-05-2010 06:05 AM
[SOLVED] Cron not working / updating Opensuse 11.0 elnita Linux - Newbie 2 05-05-2010 08:40 PM
Cron backup script stops running after a few days brokenpromises Linux - Server 5 04-05-2008 05:30 AM
cron stops in the middle of the script djzanni Linux - Newbie 6 06-02-2005 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration