1836987 Members
2340 Online
110111 Solutions
New Discussion

restarting a process

 
SOLVED
Go to solution
Maciej Szewczykowski
Frequent Advisor

restarting a process

hi everybody,
could you tell me if it's possible to restart a certain process with terminal session? the problem is perhaps that the process i would like to restart is not the HP-UX process, but is initialized by additional software installed. Lets make an assumption that i use

#ps -ef

command and now I know the ID number of the process i would like to have restarted. How to do this? (I use HP-UX v11.0)

thanks.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: restarting a process

Well, what was the process? Are you referring to a system process like syslogd or rpcbind? Or are you referring to a user application?


Pete

Pete
Ravi_8
Honored Contributor

Re: restarting a process

Hi,

you can restart certain process.

e.g : we have AFS client installed on all Unix machines. we can stop and start these AFS process as we need
in HP i do #/sbin/init.d/afs stop/start
never give up
Maciej Szewczykowski
Frequent Advisor

Re: restarting a process

hi.
it is a process connected with users application.
Pete Randall
Outstanding Contributor

Re: restarting a process

When you look at the process with ps -ef, you should see the command that originated the process. Can you just re-enter the command, or is that not what you're asking?


Pete

Pete
Maciej Szewczykowski
Frequent Advisor

Re: restarting a process

do i really need to install an additional client?
James R. Ferguson
Acclaimed Contributor
Solution

Re: restarting a process

Hi:

You should consider placing an appropriate entry in '/etc/inittab' with the 'respawn' action keyword. In this manner your process will be started, monitored, and restarted upon death.

See the man pages for 'inittab(4)' and 'init(1M)' for more information.

Regards!

...JRF...
Maciej Szewczykowski
Frequent Advisor

Re: restarting a process

the way based on re-entering the command doesn't work, unfortunately.