LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-17-2009, 06:35 PM   #1
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Rep: Reputation: 15
Question 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!!
 
Old 12-18-2009, 11:47 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,528
Blog Entries: 27

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Maybe, on the problem server, networking takes longer to fully initialise on the others and wireshark fails to initialise if that is so.
 
Old 12-18-2009, 12:46 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,610

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Is /etc/init.d/tshark executable?
 
Old 12-18-2009, 04:40 PM   #4
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Original Poster
Rep: Reputation: 15
good point

Quote:
Originally Posted by catkin View Post
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?
 
Old 12-18-2009, 04:40 PM   #5
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Original Poster
Rep: Reputation: 15
Yes, it is

Quote:
Originally Posted by AlucardZero View Post
Is /etc/init.d/tshark executable?
Yes, it is 755
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
start init.d scripts before a chroot script using schroot? arobinson74 Linux - Software 1 10-11-2009 04:05 PM
[SOLVED] how to start an application using the rc.local init script? sl33p Linux - Newbie 4 07-07-2009 04:06 PM
custom init.d script will start but won't stop Qwerty9119 Red Hat 2 05-03-2007 12:51 PM
custom init.d script will start but won't stop Qwerty9119 Linux - General 2 05-03-2007 12:23 PM
To start init 2 at boot satimis Fedora 3 10-05-2004 04:02 AM


All times are GMT -5. The time now is 02:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration