LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How is anacron working when it doesn't seem to be a daemon (https://www.linuxquestions.org/questions/linux-newbie-8/how-is-anacron-working-when-it-doesnt-seem-to-be-a-daemon-910816/)

veeruk101 10-29-2011 12:36 PM

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?

macemoneta 10-29-2011 01:03 PM

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



All times are GMT -5. The time now is 01:27 PM.