[OpenIndiana-discuss] shell script mutex locking or process signaling

Gary Mills gary_mills at fastmail.fm
Thu May 30 14:40:36 UTC 2013


On Thu, May 30, 2013 at 02:15:12PM +0000, Edward Ned Harvey (openindiana) wrote:
> 
> Here's the problem I'm trying to solve: SMF service is configured
> to launch things like VirtualBox during startup / shutdown.  This
> startup process can take a long time (10, 20 minutes) so if there's
> a problem of any kind for any reason, you might do things like
> enable and disable or refresh the service ... but each time the
> script gets launched, it's not aware of the previous one.

Are you saying that the method script itself might manipulate the
service, or that the system admin might do it?  SMF has ways to
prevent multiple instances of the method from running and to make
enable and disable requests synchronous.  Can you do what you want
within SMF, or does the method script had to do all the process
manipulation?

-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-



More information about the OpenIndiana-discuss mailing list