* Janardhan Molumuri <mjanardhan at gmail.com> [2007-04-13 16:46]:
> I am trying to make a non-transient service offline. 
>
> I wrote an SMF and using a method to start/stop the service. In the
> method based on a condition I am starting the service if not don't
> start and exiting. 

  At present, there's no way to say "not needed", although there is an
  RFE filed for such an expression.  You can use "svcadm disable [-t]"
  to accomplish something similar.

> I tried using the exit code $SMF_EXIT_MON_OFFLINE but the service goes
> into  maintenance state.
> 
>      SMF_EXIT_MON_OFFLINE   98          Monitor   assesses    service
>                                         instance   as  non-responsive
>                                         and effectively offline.
> 
> Any ideas? 

  A service method is not a monitor.  (There is no support for monitors
  yet, so the documentation is advertising a code that is really just
  "reserved for future use".)

  - Stephen

-- 
sch at sun.com  http://blogs.sun.com/sch/

Reply via email to