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 <[email protected]> skrev: ----- Till: Jorge Schrauwen <[email protected]> Från: Lauri Tirkkonen <[email protected]> Datum: 2014-11-06 12:49 Kopia: Johan Kragsterman <[email protected]>, [email protected] Ä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 _______________________________________________ OmniOS-discuss mailing list [email protected] http://lists.omniti.com/mailman/listinfo/omnios-discuss
