Quoth Peter Tribble on Sun, Feb 17, 2008 at 07:10:35PM +0000: > The 'svcadm restart' command doesn't always work, and often leaves > our services in maintenance.
Services in addition to tomcat, or just tomcat? > The problem seems to be that a restart does a stop followed by > a start, and if the stop fails (the process doesn't die cleanly, so > then smf comes along and kills the process) then the service is > immediately put into maintenance with (apparently) no attempt > to start it back up. Are there messages in the log related to the stop and transition to maintenance? > In terms of availability, this is the wrong way round, as it has > taken crucial services offline for us (and without any indication to > the user). I agree that usually users want to know if the command didn't work. Please file an RFE. > Why doesn't it try to start the service back up even if the stop > fails? > > Or is there some other way of telling it that it's OK if the stop > method failed? As others have mentioned, we don't want to start a service if there was a problem stopping it. If you have services that you want started anyway, then we'll have to change SMF. David