Operating System - HP-UX
1834077 Members
2363 Online
110063 Solutions
New Discussion

Re: How to stop a driver process

 
chuanpeng.wang
Frequent Advisor

How to stop a driver process


There is a driver process for a special modem in server. The driver process start up when system boot.
The customer don't want the process starting at boot.
How disable it?
I don't know whether the process has a script in RC*.d. If there is no the script, how to disable it?
Thanks.
6 REPLIES 6
Peter Godron
Honored Contributor

Re: How to stop a driver process

Hi,
please check/ grep in /sbin/init.d directory for the startup file. If there is one find the link in /sbin/rc?.d and remove it.
You can also check /etc/rc.log.

If there is not entry, check /etc/inetd.conf file.
chuanpeng.wang
Frequent Advisor

Re: How to stop a driver process

I don't have the rc.log and other files. It is hard to access the server. We must do everything on the site. So I want to prepare more solutions.
Biswajit Tripathy
Honored Contributor

Re: How to stop a driver process

There is too little info in the post.

How would you disable a process (apart from the
crude method of running a cron job that checks
for the process and kills it periodically) unless you
know how it is created ? Most of the processes
that are created by RC script could be disabled by
setting some parameter in some configuration file
IF the driver provides that option. If the driver
can't operate properly without the process,
obviously it will not provide the option to disable
it. Also, why the customer does not want the
process (i.e does it take too much of time/space) ?
What's the driver and the process name and what
does the process do ? Unless you understand
these, killing the process might create some bigger
problem for your customer than solve any.

If accessing the customer machine is a problem,
can you install the driver on your local system
and figure out how the process is created ?

- Biswajit
:-)
Ignacio Javier
Regular Advisor

Re: How to stop a driver process

Hi:

The place where de config file might be:
/etc/rc.config.d

Other solutions could be:

find / -name *process_name*

Maybe than offers you any clue where the process is being started from


John Guster
Trusted Contributor

Re: How to stop a driver process

if the process is running now, do ps -ef|grep the process_name. if the output does not give you the full path, find / -name process_name.
For HP-UX, the script is in /sbin/init.d directory. There are 2 links to this script. ll /sbin/rc*/|grep process_name to find the links and remove these to links; or you may want to set it not to auto start by going /etc/rc.config.d, look for the process_name file and update the file to not start at each boot if there is a control file for that process.
Good luck.
Bill Hassell
Honored Contributor

Re: How to stop a driver process

You cannot solve the problem without access to the system. You must be able to logon to the system and find the process by name. Then look at the PPID (parent process ID). If it is 1, then the process was run as a daemon or detached from some process. You need to read the /etc/rc.log file and look for this process. You need to look for the process in /etc/inittab and /etc/inetd.conf. You need to grep through all the files in /sbin/init.d to find the process by name.


Bill Hassell, sysadmin