1832091 Members
2737 Online
110038 Solutions
New Discussion

Parent Process ids

 
ramesh_4
Occasional Advisor

Parent Process ids

Hi,
In my server when i do a ps -ef
the following output comes in the screen with all the parent process id's as 1
admpadm 11916 1 0 23:46:17 ? 0:19 startup/AsGwyServer_inms03p12.sh -ms16m -mx32m -Duser.timezo
admpadm 10708 1 0 23:41:04 ? 8:28 startup/INCorrelatorEngineServer.sh -ms16m -mx32m -Duser.tim
admpadm 10929 1 0 23:42:25 ? 0:44 startup/S12_2CorrelatorEngineServer.sh -ms16m -mx32m -Duser.
admpadm 9385 1 0 23:32:38 ? 0:00 /opt/alcatel/admp/scripts/startup/SecurityGatewayServer.sh /
as 4236 1 0 23:14:10 ? 21:59 bin/ascurim
admpadm 9423 1 0 23:32:48 ? 0:12 startup/SecurityOSGatewayServer.sh -ms16m -mx32m -Duser.time
sec 9355 1 0 23:32:28 ? 0:13 /opt/almap/sec/bin/lss
admpadm 11219 1 0 23:43:37 ? 3:41 startup/SNMP_0CorrelatorEngineServer.sh -ms16m -mx32m -Duser
admpadm 4382 1 0 23:14:21 ?

Can anyone ls tell why the parent process id's are showing as 1 and is there any patches needs to be installed if its a kernel problem?
like to find out new things and compare with other flavours of unix
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: Parent Process ids

Hi,
What makes you think youre having trouble?
parent ID of 1 can mean it has been launched by init, the other case is of orphaned process, in this case you will have to kill the processes...

All the best

Victor
Alexander M. Ermes
Honored Contributor

Re: Parent Process ids

Hi there.
If a process looses connection to its original parent, the init process will take over as parent process. If you start a program running in the background ( & ) from a script and you kill the script's process id, the program's parent id will be 1 ( init ), because no process can run without a parent except for the swapper ( process id 0 ppid 0 ).
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Ravi_8
Honored Contributor

Re: Parent Process ids

Hi,
when any process(b) is running if the parent process(a) of that process(b)dies then process(b) becomes orphan, unix is designed like that if any process becomes orphan then it's ppid will be set to pid of init which is 1. After process(b) completes its job, the pid and ppid of that process(b) will be withdrawn by the os.
never give up
Magdi KAMAL
Respected Contributor

Re: Parent Process ids

Hi ,

1. The process id 1 is init.
This process is created after the swapper ( id = 0 ).
2. If you got a process P0 which creates a child P1 and the parent process die ( P0 ) before the P1 is die, so the new parent for P1 will be init process ( id = 1 ). This technic prevents from zambie's process ( By executing a wait() function for each exit() function executed by a process ).

3. All server (in terms of applications ) implements this feature in order to respond to clients requests.
Manju Kampli
Trusted Contributor

Re: Parent Process ids

Ramesh,

I think, These process are started duing the system startup by init process.. this happens when a root does su - the user and then start any daemons OR processes. Nothing to worry about.. it is a normal behaviour. If you start them manually they will habe your process ID as PPID.

hope this helps
Manju
Never stop "LEARNING"