cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How start-up deamons work

 
SOLVED
Go to solution
John Mai_1
Advisor

How start-up deamons work

Hi,

I am running HPUX 11.11. I have question regarding the start-up deamons every time the system boots up.

What program or deamon executes these startup deamons below?

Start print spooler
Output from "/sbin/rc2.d/S720lp start":
----------------------------
"/sbin/rc2.d/S720lp start" SKIPPED

Starting HP Distributed Print Service
Output from "/sbin/rc2.d/S722pd start":
----------------------------

Start clock daemon
Output from "/sbin/rc2.d/S730cron start":
----------------------------
cron started

Start diagnostic subsystem
Output from "/sbin/rc2.d/S742diagnostic start":


Thanks,

John
5 REPLIES 5
Mel Burslan
Honored Contributor
Solution

Re: How start-up deamons work

mother of all these SXXXabc.sh scripts is /sbin/rc which in turn descends into

/sbin/rc[0-4].d

and executes the scripts in their numerical order. This is why the numbering of XXX for each script is important.
________________________________
UNIX because I majored in cryptology...
DCE
Honored Contributor

Re: How start-up deamons work

Also there usually is an associated file in /etc/rc.config.d that contains the variable value that determines if an rc script is actually run
1=run
0=do not run
John Mai_1
Advisor

Re: How start-up deamons work

Thanks.

John
Yogeeraj_1
Honored Contributor

Re: How start-up deamons work

hi john,

see also the attached document.

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
lawrenzo
Trusted Contributor

Re: How start-up deamons work

also once the system is running you can find application start / stop scripts in

# /sbin/init.d/*

# ll
-r-xr-xr-x 1 root sys 1454 Aug 2 2002 vxvm-daemon-kill
-r-xr-xr-x 1 root sys 1970 Aug 2 2002 vxvm-nodes-check
-r-xr-xr-x 1 root sys 14601 May 6 2004 vxvm-reconfig
-r-xr-xr-x 1 root sys 2607 Aug 2 2002 vxvm-recover
-r-xr-xr-x 1 root sys 14600 May 6 2004 vxvm-rootreconfig
-r-xr-xr-x 1 root sys 5366 May 6 2004 vxvm-startup
-r-xr-xr-x 1 root sys 3150 Aug 2 2002 vxvm-sysboot
-r-xr-xr-x 1 root sys 3784 Sep 21 2001 webadmin
-r-xr-xr-x 1 root sys 2355 Jun 25 2004 xf86
-r-xr-xr-x 1 root sys 1176 Nov 14 2000 xfs
-r-xr-xr-x 1 root sys 2060 Jul 26 2002 xntpd

etc etc

you can use these to stop start applications when the server is running.

each app will start at a different run level - to see which run level a certain script starts:

find /sbin -name "*xntpd*" -exec ll {} \;

see man init

HTH
hello