Multiple processes

Folks,

Please look at the following description:

We have a Start Script (START-PROCESSES script) that starts multiple processes :

A Process

B Process

C Process

D Process

We have implemented a manifest, and implemented the START / STOP / REFRESH methods, but when any of these process ( A / B / C etc.. ) fails, SMF stops and starts all processes.

Even though in our implementation every process is independent of other process.. A is independent of B, C is independent of B, C is independent of A. etc...

If A process crashes or cores, we don't want SMF to stop all processes and restart all processes, but should only start A process. Is this possible for us to acheive this ?

Since we don't want one process to effect the proper functioning of the other process. Because of this limitation we are unable to implement the SMF solution in our product

_Thanks Much

ddt

[952 byte] By [durga.tirunagaria] at [2007-11-27 4:08:18]
# 1

> We have a Start Script (START-PROCESSES script) that

> starts multiple processes :

>

Using my completely limited knowledge of SMF internals, wouldn't it be easier to just create one SMF file as a template, and then create four separate SMF manifests, one for each process?

alan

alan.paea at 2007-7-12 9:13:39 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
HI Alan,How do I address the dependencies. Since all these processes are individually dependent on another process called BLOB _D
durga.tirunagaria at 2007-7-12 9:13:39 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

something like,

Blob must start before everything else and once blob is started then any of the four can be started in any order?

Like I said, I have limited knowledge of manifest files but IIRC you can set a dependency in their somewhere. So your manifest file would contain a dependency for BLOB and then would kick off the process. You could easily put this into a shell script and just loop through ps -ef until BLOB shows up and then continue on with the script.

Just a couple of silly suggestions.

alan

alan.paea at 2007-7-12 9:13:39 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

Thanks for the replies, say for example I implement four manifests and import all these four manifests,

Then starting these processes will be like enabling these services will be some thing like :(

svcadm enable svc:/network/ProcessA

svcadm enable svc:/network/ProcessB

svcadm enable svc:/network/ProcessC

svcadm enable svc:/network/ProcessD

Which is in contrary to the START-PROCESSES script, which used to bring up all these processes.

Are there any other alternatives to this ?. or may be an RFE against SMF

_D

durga.tirunagaria at 2007-7-12 9:13:39 > top of Java-index,Solaris Operating System,Solaris 10 Features...