Operating System - HP-UX
1821984 Members
3244 Online
109638 Solutions
New Discussion юеВ

process problem - PPID is 0

 
Olivier LEGRAND
Frequent Advisor

process problem - PPID is 0

On a HP-UX server, I have this :
apache 10788 0 0 11:01:08 ? 0:00 /opt/hpapache2/bin/httpd

The PPID is 0

UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Feb 15 ? 0:13 swapper

I can't kill this process. Does anyone know this kind of problem
9 REPLIES 9
Eric Antunes
Honored Contributor

Re: process problem - PPID is 0

I think those processes with PPID = 0 are system processes...
Each and every day is a good day to learn.
Olivier LEGRAND
Frequent Advisor

Re: process problem - PPID is 0

I can't kill the apache process, Sorry
Pete Randall
Outstanding Contributor

Re: process problem - PPID is 0

A PPID of 0 indicates that it is probably a daemon started during the rc process. Assuming that's true, there should be a start/stop script in /sbin/init.d. Try running "grep httpd /sbin/init.d/*" to see if you can find the script (probably /sbin/init.d/webadmin?). Assuming you do find it, you should be able to run the script with the "stop" parameter to get rid of the process.


Pete

Pete
Olivier LEGRAND
Frequent Advisor

Re: process problem - PPID is 0

I can't stop apache properly.
And the kill -9 does not work
Olivier LEGRAND
Frequent Advisor

Re: process problem - PPID is 0

It seems to be a deactivated process
Leif Halvarsson_2
Honored Contributor

Re: process problem - PPID is 0

Hi,
There is a command "apachectl" that should be used for managing apache. Check the man page or do a "apachectl -h"
Olivier LEGRAND
Frequent Advisor

Re: process problem - PPID is 0

It is not a apache problem. The process is hanged because of a problem of memory (and swap). But now I can not do a "kill -9", and I don't know how I can reactivated this process
Steven E. Protter
Exalted Contributor

Re: process problem - PPID is 0

If you can not kill the process, the only alternative is to boot the machine.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Olivier LEGRAND
Frequent Advisor

Re: process problem - PPID is 0

I had to reboot the server