LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2011, 01:36 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
How is anacron working when it doesn't seem to be a daemon


On my CentOS 5.6, when I do 'service anacron status', I get some 'anacron is stopped', but on my CentOS 6.0, when I do 'service anacron status' it says there's no service called anacron. But for both systems if I do 'which anacron' I get /usr/sbin/anacron.

So I'm wondering on the system where there is no anacron service, how does it run? (Because it does seem to be running the daily run.) There doesn't seem to be any anacron script in /etc/cron.daily/ or /etc/cron.d/, and /etc/crontab doesn't have any entries.

I tried to search through the processes doing a 'ps aux | grep anacron' on both systems, and nothing appeared.

So how does it run on a daily basis as it's supposed to?
 
Old 10-29-2011, 02:03 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Code:
$ rpm -qf /usr/sbin/anacron
cronie-anacron-1.4.8-2.fc15.x86_64
So anacron is part of the cronie-anacron. Looking further provides the answer to your question:

Code:
$ rpm -ql cronie-anacron
/etc/anacrontab
/etc/cron.hourly/0anacron
/usr/sbin/anacron
/usr/share/man/man5/anacrontab.5.gz
/usr/share/man/man8/anacron.8.gz
/var/spool/anacron
/var/spool/anacron/cron.daily
/var/spool/anacron/cron.monthly
/var/spool/anacron/cron.weekly
 
  


Reply


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
transmission-daemon doesn't download zoran119 Slackware 1 10-19-2011 03:15 PM
Bash script to verify the daemon is working if not, start the daemon kishoreru Linux - Newbie 7 09-23-2009 05:29 AM
ftp daemon doesn't seem to be up!? Chikne Slackware 1 12-05-2006 03:19 AM
MySQL Daemon doesn't run stedo Debian 1 11-23-2005 09:07 AM
Cron/Anacron Not Working - Debian Sarge br00tal Debian 2 10-10-2005 07:41 PM


All times are GMT -5. The time now is 11:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration