cancel
Showing results for 
Search instead for 
Did you mean: 

first process in hpux

 
SOLVED
Go to solution
Highlighted
Shivkumar
Super Advisor

first process in hpux

Hi,

In HPUX 11.11i or 11.23 which is the first process which spawns other processes ?

If i remember correctly in Sun Solaris it was scheduler process with pid 0.

Just curious how hpux spawns the process world.

Thanks,
Shiv
8 REPLIES 8
Highlighted
Rajeev Shukla
Honored Contributor

Re: first process in hpux

Hi Shiv,

In HPUX it is the init process which starts the other processes.
You can run ps -ef|more and see all the system daemons start with a PPID of 1 which is the PID of init process

Cheers
Rajeev
Highlighted
Arunvijai_4
Honored Contributor
Solution

Re: first process in hpux

Hi Shiv,

"swapper" is the process,

# ps -ef

UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Jun 9 ? 6:10 swapper
root 1 0 0 Jun 9 ? 0:01 init

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Highlighted
Rajeev Shukla
Honored Contributor

Re: first process in hpux

If you are talking about the first process then yes it is swapper.
But if you are asking which process spawns other process in the system then it is init.
Have a look at the man pages of init, the first line explains
"The init daemon and command is a general process spawner"

Cheers
Rajeev
Highlighted
inventsekar_1
Respected Contributor

Re: first process in hpux

hi Shivkumar,

The init daemon and command is a general process spawner. Its primary role is to create processes from a script stored in the file /etc/inittab.

ps -ef|more
UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Jul 15 ? 0:17 swapper
root 1 0 0 Jul 15 ? 0:00 init
root 8 0 0 Jul 15 ? 0:00 ioconfigd
root 9 0 0 Jul 15 ? 0:25 nfsktcpd
root 10 0 0 Jul 15 ? 0:00 autofskd
root 11 0 0 Jul 15 ? 0:00 lvmkd
root 12 0 0 Jul 15 ? 0:00 lvmkd


reference:
http://en.wikipedia.org/wiki/Init

init man page:
http://docs.hp.com/en/B2355-60127/init.1M.html
Be Tomorrow, Today.
Highlighted
Raj D.
Honored Contributor

Re: first process in hpux

Hi Shiv,

swapper is the first process in hp-ux , and with PID= 0 .



UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Jul 13 ? 0:14 swapper
--------------------------------------------

Init is the 2nd process with PID=1 . And vhand is the 3rd with PID=2 .


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Highlighted
Rajesh SB
Esteemed Contributor

Re: first process in hpux

Hi Shiv,

First process started by HPUX is "swapper" with pid 0 used as RAMDISK. Next process is "init" with pid 1, which is ancestor of all the process.

init process with pid-1 is common across all the unix like Linux/Solaris.

Regards,
Rajesh SB
Raj D.
Honored Contributor

Re: first process in hpux

Shiv,

Also you can check this good document:

[ HP-UX Process Management: White Paper: ]

http://docs.hp.com/en/5965-4642/index.html


hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Highlighted
dirk dierickx
Honored Contributor

Re: first process in hpux

swapper is not even a real process, ea it is not started from a binary from the disk. init is the first real process that gets read from disk.