09-20-2002
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.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have written a daemon and want to make sure that it starts up again after the machine is re-started so I can quit manually doing it. Problem is I'm having difficulty understanding what to do with the init.d
Any help would be appreciated! (1 Reply)
Discussion started by: BC_Kevin
1 Replies
2. UNIX for Advanced & Expert Users
Hi Expert,
I have encountered some problem with my SUN system. Everytime when i issue command #init 6 OR #init 0 it just logout and prompt for login again instead of rebooting the server when run init 6 and system shutdown when run init 0..
I can only reboot the system using reboot ... Was... (6 Replies)
Discussion started by: sc2005
6 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
What should i do to make the following work:
# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...No support for INET6 on this system.
Failed to bring up lo.
done.
Thanks & Regards
Gauri (0 Replies)
Discussion started by: gauri
0 Replies
4. Solaris
root@test09 # ls -al /sbin/init
-r-xr-xr-x 1 root sys 550000 Jun 29 2002 /sbin/init
root@test09 # ls -al /usr/sbin/init
-r-xr-xr-x 1 root sys 37100 Jun 29 2002 /usr/sbin/init (2 Replies)
Discussion started by: userking
2 Replies
5. UNIX for Dummies Questions & Answers
I know if a parent process exits before its child, the last one becomes orphan for a while and then is added to the children of Init process.
I'd like to know deeper
1 how the orphan becomes init process,
2 how init knows that from a some point on it has another child.
Thank you in advance. (2 Replies)
Discussion started by: Puntino
2 Replies
6. Linux
Dear all,
I typed in init 1 on my redhat box as root and according to wikipedia (http://en.wikipedia.org/wiki/Runlevel):
1 Single-User Mode Does not configure network interfaces, start daemons, or allow non-root logins
So now I can't connect back to it. How do I change the init back to 3?... (8 Replies)
Discussion started by: z1dane
8 Replies
7. Red Hat
What is the difference between 'init s' and 'init 1'.
I know that both will work to change the current run level to single user mode.
Is there any difference in those two commands? (5 Replies)
Discussion started by: praveen_b744
5 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am experiencing a weird thing on my SUNFIRE machine with Solaris 9 OS.
When I do init 0 to shutdown the machine to go to ok prompt, what it did was shutdown and reboot like an init 6 command do. I did check the corresponding rc scripts that were involved with init 0 and compared with rc... (2 Replies)
Discussion started by: Yenthanh
2 Replies
9. Solaris
i did my research in finding the answer but couldn't find right one. Please give your inputs. (6 Replies)
Discussion started by: ranumala
6 Replies
10. Red Hat
I encountered a problem on one of our database servers.
OS: CentOS 5.5 final
Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel)
We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies
LEARN ABOUT DEBIAN
init-checkconf
init-checkconf(8) System Manager's Manual init-checkconf(8)
NAME
init-checkconf - manual page for init-checkconf
SYNOPSIS
init-checkconf [OPTIONS] file
init-checkconf [OPTIONS] -f file
DESCRIPTION
Determine if specified Upstart init(8) job configuration file is valid.
By default, two checks are performed:
o Ensure Upstart can parse overall file successfully
o Ensure all script sections are parseable by shell
OPTIONS
-d , --debug
Show some debug output.
-f file , --file=file
Specify job configuration file to check.
-i path , --initctl-path=path
Specify path to initctl(8) binary.
-s , --noscript
Do not check script sections.
-x path , --upstart-path=path
Specify path to init(8) binary.
-h , --help
Display usage statement.
AUTHOR
Written by James Hunt <james.hunt@ubuntu.com>
LIMITATIONS
o This program will not run as the root user.
o It is not possible for a user to run multiple simultaneous instances of this program.
REPORTING BUGS
Report bugs at <https://launchpad.net/upstart/+bugs>
COPYRIGHT
Copyright (C) 2011 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
sh(1) init(5) init(8)
Upstart 2011-04-06 init-checkconf(8)