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

Johan Kragsterman johan.kragsterman at capvert.se
Thu Nov 6 12:13:19 UTC 2014


Sorry, forgot the list...



Hej, Lauri!


Thanks for your input!

Do you mean that I should just change the "transient" to "contract"?

And the "&" at the end of start/exec like this:

<exec_method type='method' exec='/usr/bin/vmpfsense.sh' name='start' timeout_seconds='120' & />

How about the spaces there in the end...?


Regards Johan





-----Lauri Tirkkonen <lotheac at iki.fi> skrev: -----
Till: Jorge Schrauwen <sjorge+ml at blackdot.be>
Från: Lauri Tirkkonen <lotheac at iki.fi>
Datum: 2014-11-06 12:49
Kopia: Johan Kragsterman <johan.kragsterman at capvert.se>, omnios-discuss at lists.omniti.com
Ärende: Re: [OmniOS-discuss] Ang: Re: Ang: Re: KVM and SMF

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