WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: persistent cronjobs [solved]  (Read 5453 times)

ali

  • Guest
persistent cronjobs [solved]
« 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:~$
« Last Edit: May 11, 2011, 02:58:51 AM by ali »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: persistent cronjobs
« Reply #1 on: May 10, 2011, 08:25:50 PM »
/var/spool/cron/crontabs

You need to add
var/spool/cron/crontabs
to /opt/.filetool.lst

ali

  • Guest
Re: persistent cronjobs
« Reply #2 on: May 11, 2011, 02:58:35 AM »
thanks, i thought the /var folder was for logs and stuff like that

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: persistent cronjobs
« Reply #3 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SteGriff

  • Newbie
  • *
  • Posts: 5
Re: persistent cronjobs [solved]
« Reply #4 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 :)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: persistent cronjobs [solved]
« Reply #5 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.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SteGriff

  • Newbie
  • *
  • Posts: 5
Re: persistent cronjobs [solved]
« Reply #6 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.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: persistent cronjobs [solved]
« Reply #7 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).
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline ldak

  • Newbie
  • *
  • Posts: 6
Re: persistent cronjobs [solved]
« Reply #8 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?