Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: ali on May 10, 2011, 04:09:18 PM

Title: persistent cronjobs [solved]
Post by: ali on May 10, 2011, 04:09:18 PM
i noticed my cronjobs are no longer there after i reboot

i tried searching for a file where they may be stored but i'm out of luck
Code: [Select]
ali@box:~$ sudo find / -name "*cron*"
*stuff from mounted partitions*
/var/run/crond.pid
/var/spool/cron
/var/spool/cron/crontabs
/sys/bus/pci/drivers/JMicron IDE
/usr/sbin/crond
/usr/bin/crontab
/etc/init.d/services/crond
ali@box:~$
Title: Re: persistent cronjobs
Post by: gerald_clark on May 10, 2011, 08:25:50 PM
/var/spool/cron/crontabs

You need to add
var/spool/cron/crontabs
to /opt/.filetool.lst
Title: Re: persistent cronjobs
Post by: ali on May 11, 2011, 02:58:35 AM
thanks, i thought the /var folder was for logs and stuff like that
Title: Re: persistent cronjobs
Post by: tinypoodle on May 11, 2011, 10:09:55 AM
thanks, i thought the /var folder was for logs and stuff like that

http://www.pathname.com/fhs/pub/fhs-2.3.html
Title: Re: persistent cronjobs [solved]
Post by: SteGriff on May 12, 2011, 01:24:24 PM
In a similar vein, I have a hard drive installation with persistent home and opt using the boot commands, but I also want to make /usr/ persistent.

I could add it to .filetool.lst but I always shut down using
$ sudo poweroff
which doesn't back up.

Does /opt/shutdown.sh get called during a poweroff or reboot command? If so, I could just add a line to that which calls the backup utility I suppose.

Please advise :)
Title: Re: persistent cronjobs [solved]
Post by: tinypoodle on May 12, 2011, 01:38:41 PM
1. IMHO that is a topic totally irrelevant to this thread.
2. You may find some ideas/answers here: http://forum.tinycorelinux.net/index.php?topic=9092
3. Not sure if adding usr to backup would be a wise idea.
Title: Re: persistent cronjobs [solved]
Post by: SteGriff on May 12, 2011, 02:09:38 PM
1. IMHO that is a topic totally irrelevant to this thread.
2. You may find some ideas/answers here: http://forum.tinycorelinux.net/index.php?topic=9092
3. Not sure if adding usr to backup would be a wise idea.

Re: 1. OP wanted persistent cron settings, I want persistent SSH settings; I feel that while the methodology is different, the aim is the same.
2. Useful thread, thank you.
3. Why is that? Because of the size? I really only need a the settings files for openssh, which are kept in /usr/local/, but I'm concious that as I add more applications, a lot of their settings will be kept in /usr.

If I should make a new thread, that's fine, I just didn't want to clutter. What, in your opinion, is the best way to make those settings persistent?

Thank you for your response.
Title: Re: persistent cronjobs [solved]
Post by: tinypoodle on May 12, 2011, 02:27:16 PM
Well, you had said you wanted to make /usr persistent...
Adding specific files residing in /usr to .filetool.lst absolutely makes sense (I happen to do so myself).
Title: Re: persistent cronjobs [solved]
Post by: ldak on July 29, 2011, 05:51:00 PM
What about adding just usr/local/etc for the config files only to /opt/.filetool.lst instead of all of /usr?