Visit Our UNIX and Linux User Community

How to avaoid the respawn

Thread Tools Search this Thread
Operating Systems Solaris How to avaoid the respawn
# 1  
Old 04-02-2009
How to avaoid the respawn

Hi All,

I have started my processes through SMF functionality.
It gets started successfully.

But when I kill my processes, it's getting restarted. But in Solaris 9 and below if I kill it will not get restarted.
In Solaris 10 it should not get restarted L
How can I perform the operation similar to Solaris 10 and below?
Please help me in solving this issue.

# 2  
Old 04-02-2009
svcadm disable {service name}
# 3  
Old 04-03-2009
I will disable the services.But i need the services should be in online and the processs should not get strated if it is stopped manually
# 4  
Old 04-03-2009
Which service you are talking about? There are many services which are dependent service which get start based on dependencies.

Also what do you mean by “But i need the services should be in online and the processes should not get started if it is stopped manually”

Services is actually a running process and once you stop some process with svcadm disable it shouldn't get start automatically not even after reboot.

Last edited by kumarmani; 04-03-2009 at 06:56 AM..
# 5  
Old 04-03-2009
SMF auto-restarts processes as long as the service is enabled. That's the whole point of SMF.
If you set up the service yourself and don't want this to happen then don't use SMF. Just use an init script in /etc/rc3.d.
# 6  
Old 04-06-2009
Thanks Smilie

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Respawn httpd using init

How to auto restart httpd(apache) with inittab respawn? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

2. Solaris

java process does not respawn

Hi, I am working on Solaris 8 on sunblade 150 machine.I have a java code jar file which I have configured in inittab to respawn.When I kill the process as per the respawn property the new process id gets generated.If I keep killing the process after 4-5 tries the process does not respawn.Sometimes... (0 Replies)
Discussion started by: girish_shukla
0 Replies

Featured Tech Videos