Operating System - HP-UX
1834696 Members
2182 Online
110069 Solutions
New Discussion

Remove a daemon at boot up

 
SOLVED
Go to solution
Ricky B. Nino
Frequent Advisor

Remove a daemon at boot up

Hi,

What is the proper/best practice to remove certain daemon that automatically runs at boot up?

thanks...
Opportunities expand for people willing to put time and effort into learning new skills.
5 REPLIES 5
suki
Frequent Advisor
Solution

Re: Remove a daemon at boot up

Hi,
For most of the daemon there will be a startup config script in /etc/rc.config.d directory. U need to change the startup entry from 1 to 0.


-Suki
Sridhar Bhaskarla
Honored Contributor

Re: Remove a daemon at boot up

Hi,

At boot time, the processes start from /sbin/init.d/* scripts. There will be corresponding on|off files in /etc/rc.config.d/ directory if the vendors followed the correct procedure.

For ex., /etc/rc.config.d/nfsconf. If you make NFS_SERVER=1, then nfsd's will start, else they won't.

So, the best way is to edit the corresponding /etc/rc.config.d/config_file and disable the parameters in there.

If the /sbin/init.d/your_startup_script does not look in /etc/rc.config.d, then I would suggest to move the file as file.nostart under the same directory. So, the bootup will fail to find the file.

You can also disable startup by removing links in /sbin/rc?.d/Sxxx and Kxxx .
But if you need to put it back, you will need to recreate the links. So, I would recommend move the file under /sbin/init.d to file.nostart.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor

Re: Remove a daemon at boot up

The config files for different daemons/programs that start at boot time are in /etc/rc.config.d. You can set it accordingly in these files-called control files.
There is no substitute to HARDWORK
Rajeev  Shukla
Honored Contributor

Re: Remove a daemon at boot up

Hi,
As others said, the good practice for adding applications to startup is have a configuration file in /etc/rc.config.d
so by setting a value to 0 in that for a proper daemon configuration file in /etc/rc.config.d should solve the problem.
To look which file that daemon has, look in /sbin/init.d
and if that doesn't work either remove the file S...in /sbin/rc2.d or rc3.d where ever this daemon starts to have a look see /etc/rc.log and you'll know which file corresponds to that particular daemon and then you can move that file to some other place.

Rajeev
Punithan
Advisor

Re: Remove a daemon at boot up

Hi


1. make link file for start up and shutdown in /etc/rcXX.d

2.if file that create in number 1 need to check parameter you can add it in /etc/rc.config.d/

you can see example that already exist

/sbin/init.d/lp
/sbin/rc2.d/S720lp
/sbin/rc1.d/K280lp
/etc/rc.config.d/lp

bye
Punithan

System Engineer