[OmniOS-discuss] Ang: Re: Ang: Re: KVM and SMF

Lauri Tirkkonen lotheac at iki.fi
Thu Nov 6 11:49:10 UTC 2014


On Thu, Nov 06 2014 12:35:35 +0100, Jorge Schrauwen wrote:
> I use transient for my script that start qemu. By default if the process
> does not daemonize it is killed after... I think 90 seconds by default.

svc.startd(1M) manual mentions:

> If a contract or transient service does not return from  its
> start  method before its defined timeout elapses, svc.startd
> sends a SIGKILL to the method, and returns  the  service  to
> the offline state.

and

> Defining a service as transient means that  svc.startd  does
> not  track  processes  for that service. Thus, the potential
> faults described for contract model services  are  not  con-
> sidered failures for transient services.

Because of these I would use 'contract'. If your start method does not
daemonize, you can just add a '&' at the end of start/exec.

-- 
Lauri Tirkkonen | +358 50 5341376 | lotheac @ IRCnet


More information about the OmniOS-discuss mailing list