From: Leonardo Chiquitto Subject: Re: autofs5 early daemonization side effects Date: Wed, 18 Mar 2009 17:39:12 -0300 Message-ID: References: <49C11A67.5000603@themaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <49C11A67.5000603@themaw.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: autofs@linux.kernel.org > Jeff Moyer wrote: >> >> Leonardo Chiquitto writes: >> >>> Hello, >>> >>> I've been doing some tests with AutoFS5 and I'd like to confirm that >>> the behavior I'm seeing during the daemon initialization is expected >>> or not. >>> >>> The problem: when the autofs initscript returns, autofs is not really >>> ready. >> >> Strange. =A0I originally wrote the code to return a status via a pipe, so >> that the init script would not return status until the daemon was ready >> to service requests. =A0It also took care of the problem of the init >> script returning success when the daemon actually failed. The Autofs code is completely right. The problem I'm seeing is being caused by startproc, a wrapper to start daemons that some distros (like openSUSE) use. Applying the following pseudo-patch in the initscript makes everything work as it should: - /sbin/startproc $DAEMON $AUTOFS_OPTIONS + $DAEMON $AUTOFS_OPTIONS Ian and Jeff, thanks for the help and sorry for the noise. Michael, with luck this will be a valid workaround for you too! Leonardo