Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started 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
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:~$
-
/var/spool/cron/crontabs
You need to add
var/spool/cron/crontabs
to /opt/.filetool.lst
-
thanks, i thought the /var folder was for logs and stuff like that
-
thanks, i thought the /var folder was for logs and stuff like that
http://www.pathname.com/fhs/pub/fhs-2.3.html
-
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 :)
-
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.
-
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.
-
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).
-
What about adding just usr/local/etc for the config files only to /opt/.filetool.lst instead of all of /usr?