Operating System - HP-UX
1758364 Members
2726 Online
108868 Solutions
New Discussion юеВ

Re: How to save all running process even after rebooting the server.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to save all running process even after rebooting the server.

Hi

In my hp-ux 11.00,lot of process is running.

When i restart the server some process (which is ran by myself before reboot) are missing from running process list (#ps -ef).

so i need to re-run the process once again whenever i am rebooting the server.

But i want to save (to run automatically even after rebooting) all the process after rebooting.

Is it possible?
5 REPLIES 5
avizen9
Esteemed Contributor

Re: How to save all running process even after rebooting the server.

Hi Senthil,
you can put your all task in startup file, refer below url for more info.

http://www.unixhub.com/docs/hpux/hpux_boot.html
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to save all running process even after rebooting the server.

Hi:

You need to acquaint yourself with the 'rc' (run control) scripts.

I _urge_ you to take the time to begin by reading:

http://docs.hp.com/en/934/startup.pdf

This whitepaper is _still_ valid and is summarized in the 'rc(1M)' manpages too:

http://docs.hp.com/en/B2355-60130/rc.1M.html

Be sure to copy and use '/sbin/init.d/template' as the model for your start/stop needs.

Since you are new to this, _READ_ the whitepaper above first!

Regards!

...JRF...
UVK
Trusted Contributor

Re: How to save all running process even after rebooting the server.

You need to use the startup scripts which can be made to run automatically during reboot.

You need to decide on which run level you want your processes to run and place an appropraite script for start and Kill of that process
/sbin/rc1.d
/sbin/rc2.d
/sbin/rc3.d
/sbin/rc4.d
-------------------------------------------
Like it or worked !! Click kudos !!
UVK
Trusted Contributor

Re: How to save all running process even after rebooting the server.

it would be easy for you to read and understand from the link

http://www.unixhub.com/docs/hpux/hpux_boot.html

-------------------------------------------
Like it or worked !! Click kudos !!
Suraj K Sankari
Honored Contributor

Re: How to save all running process even after rebooting the server.