LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Init script in /etc/init.d does not start at boot (http://www.linuxquestions.org/questions/linux-server-73/init-script-in-etc-init-d-does-not-start-at-boot-776548/)

tdnnash25 12-17-2009 06:35 PM

Init script in /etc/init.d does not start at boot
 
I have tshark installed on several Debian servers. I have a custom script in /etc/init.d/ and in /etc/rc2.d I have a symlink to /etc/init.d/

/etc/init.d/tshark
/etc/rc2.d/S99tshark (<--- this is a symlink to /etc/init.d/)

On all but 1 server, tshark starts on boot. The only way I am able to get tshark to start on the 1 server that is being a pain in the butt is to change S99 to S22 or anything higher priority than 99 essentially. All servers are same hardware, same OS, same version, etc etc etc

Can anyone think of a reason why this init script isn't started when S99 but it works when S20?

I also can't find anywhere on the Debian box that logs init script failures!!

catkin 12-18-2009 11:47 AM

Maybe, on the problem server, networking takes longer to fully initialise on the others and wireshark fails to initialise if that is so.

AlucardZero 12-18-2009 12:46 PM

Is /etc/init.d/tshark executable?

tdnnash25 12-18-2009 04:40 PM

good point
 
Quote:

Originally Posted by catkin (Post 3796960)
Maybe, on the problem server, networking takes longer to fully initialise on the others and wireshark fails to initialise if that is so.

Maybe, but how would I know that?

tdnnash25 12-18-2009 04:40 PM

Yes, it is
 
Quote:

Originally Posted by AlucardZero (Post 3797033)
Is /etc/init.d/tshark executable?

Yes, it is 755


All times are GMT -5. The time now is 04:34 AM.