David Powell wrote: > Michael, > > On Thu, Aug 24, 2006 at 09:07:20PM +0100, Michael A. Haines wrote: > >>Can someone please help me the following. >> >>I have a manifest for starting/stopping the Sun Directory Service. >>Works fine. However, if I deliberately kill the slapd process is does >>not get restarted. The reason would appear to be that the stop method >>is not exiting cleanly, because stop-slapd is reporting "No ns-slapd PID >>file found. Server is probably not running". >> >>How can I inform the svc.startd that this is actually an OK response and >>to go on and run the start method ? Looking at the various docs and >>man pages etc. I can only see stuff about informing the restarter to >>ignore kill signals and cores, which is not what I want, of course. But >>I can't seem to find anything else :-( > > > svc.startd(1M) methods must follow the conventions set forth in > smf_method(5). In particular, your stop method should be returning > SMF_EXIT_OK (i.e. 0) in the case you describe. At the moment, > svc.startd is seeing: > > SMF_EXIT_ERR_OTHER non-zero Any non-zero exit status from > a method is treated as an > unknown error. A series of > unknown errors can be diag- > nosed as a fault by the res- > tarter or on behalf of the > restarter. > > which explains the behavior you observed. > > Dave >
-- Best regards -Michael Sun Microsystems, Inc.