Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Pages: 1
I am trying to set up some cron jobs on my dns-323. I created a bin directory in /home/root put in a shell script blah.sh ( made it executable and also did a chattr +i on it for good measure.). Then I set up a chronjob via crontab -e to run blah.sh on regular intervals. The chron job seems to take (i.e. /var/spool/cron/crontabs/root) shows the job as being scheduled. So now I restart the dns-323 (via the web interface) and when I check back /home/root the bin directory is not there neither is the chronjob entry in /var/spool/cron/crontabs/root. What gives??
Offline
arunbav wrote:
What gives??
The /root file system resides in RAM and is recreated from flash every reboot. (see /etc/rc.sh)
If you want your changes to survive reboot, you need to create a script that applies
the changes after each reboot.
Last edited by mig (2009-04-24 08:08:44)
Offline
Thanks. I can put the shell scripts in a different system bin folder which does not get rewritten every reboot. But how do I set up the chron jobs so that they do not disappear on restart?
Offline
Fonz,
I tried it but I get a "Could not chdir to home directory /mnt/HD_a2/root: No such file or directory". I suppose I should create the /mnt/HD_a2 directory? What should the permissions be? 755? Thanks
Arun.
Offline
arunbav wrote:
But how do I set up the chron jobs so that they do not disappear on restart?
One techinque is to write a script that recreates the cron jobs at each reboot, similar to the 'editcron.sh' in this post :
http://dns323.kood.org/forum/viewtopic. … 637#p28637
Offline
Pages: 1