LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   difficulties booting iscsi; boot order (https://www.linuxquestions.org/questions/debian-26/difficulties-booting-iscsi%3B-boot-order-888757/)

bweaver 06-28-2011 08:48 AM

difficulties booting iscsi; boot order
 
Dear all,

We are running Debian Squeeze with an iscsi connection to a SAN server. The iscsi connection is giving us a lot of trouble on startup.
The connection, we noticed, is achieved much quicker if done manually subsequent to boot-up. But we want the iscsi to be brought up at boot-time. We already changed enforced late start of iscsi through changing the init.d boot scripts.

1. Isn't there a 'hook' script that is executed after all the other boot-up procedures are done, which might be appended with commands to start the iscsi connection? I have tried making this change in /etc/rc.local but this script does not seem to produce the required startup of iscsi.

Thanks in advance.

bweaver 06-29-2011 11:36 AM

Debian is odd one out
 
I have learned that Debian does not use the rc.local scripts, either under /etc or /etc/init.d .

The best thing to do is to create your own bash script, called anything you want, say, foo, which you then make available to run after everything else via,

sudo chmod 755 foo

sudo update-rc.d foo defaults 80

Scripts are best written compliant with the LSB specification:

http://wiki.debian.org/LSBInitScripts


All times are GMT -5. The time now is 07:32 AM.