Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a SAM9 based board running embedded linux using buildroot package.

I added the crond and crontab support to busybox from make menuconfig and built the rootfs and flashed it to my board.

The crond and crontab utilities were now present on the board.

I executed the following :

mkdir /var/spool/cron/
mkdir /var/spool/cron/crontabs/
crontab -e

Then added the following in the editor :

* * * * * "harsh" >> /root/harsh.txt

Then executed 'crond' and I was able to see it in the list of processes using 'ps' command.

Also the text line with 'harsh' was appeded to the file every minute.

But the problem is that when I reboot the board the 'cron' directory is deleted from /var/spool/ and the cron process also cannot be started as the cron configuration file itself resides in /var/spool/cron/

How to fix this ?

PS : I have also posted it on here -> but it seemed to me that is a more approriate place to ask this question

share|improve this question

You need to include the directories and crontab(s) in the boot image.

A flash OS unpacks the OS into RAM every time the system boots; there is no persistent filesystem for storage.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.