The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Understanding this Makefile the_learner High Level Programming 5 06-13-2007 10:55 PM
A little help understanding FIFOs? deckard Linux 0 11-01-2005 09:46 AM
Init 6 & Init 0 problem sc2005 UNIX for Advanced & Expert Users 6 09-06-2005 07:36 AM
Understanding traceroutes Bobby IP Networking 2 03-14-2005 01:35 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2002
Registered User
 

Join Date: Feb 2002
Location: Chicago IL
Posts: 41
need further understanding of init.d

I needt o know how what init.d does and how it knows which dameons/applications to turn off and how to restart the applications after reboot. any OS - solaris/hp-ux
Forum Sponsor
  #2 (permalink)  
Old 09-20-2002
Registered User
 

Join Date: Mar 2002
Location: London, England
Posts: 262
init.d contains a bunch of scripts. that can be use to start or stop a daemon or application while the server is up and running or during boot or when entering another runlevel. Services or daemon that can be started could include things like networking, nfs, sendmail, apache.

init.d script is link through a symbolly link to rc script (run control script)

eg In the /etc/rc3.d directory shows

S60nfs -> ../init.d/nfs
lrwxrwxrwx 1 root root 15 13:11 S70nfsfs -> ../init.d/nfsfs

lrwxrwxrwx 1 root root 23 13:11 S80sendmail -> ../init.d/sendmail.init

when your system enter run level 3 or boot up in mult user mode
init.d start up applications or daemons in mult user mode.

when your system is shutdown init.d excute script in /etc/rc0.d which shutdown the application before your system goes down.
script in /etc/rc0.d start with K which indicate kill script

Note

S indicate a start up script in /etc/rc2.d or /etc/rc3.d while K indicate kill script in your /etc/rc0.d

so init.d shutdown down application and starts applications automatically.
Google UNIX.COM
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0