Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] missing anacron init.d file (Read 989 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] missing anacron init.d file

Hi everyone!

Does anyone know what happened to the anacron init.d file?

When I do pkgfile /etc/init.d/anacron I get
Code: [Select]
[1]    7956 exit 1     pkgfile /etc/init.d/anacron

I have cronie installed and it's in the default runlevel, but anacron doesn't get started by it.

 

Re: missing anacron init.d file

Reply #1
Never mind. I solved the issue by creating /etc/crontab
Code: [Select]
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
0 18 * * * root run-parts /etc/cron.daily
22 18 * * 0 root run-parts /etc/cron.weekly
42 18 1 * * root run-parts /etc/cron.monthly

So the file 0anacron supplied by system/cronie in /etc/cron.hourly  is now executed at 1 minute past every hour. I guess this is the way anacron is handled by cronie.