Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2016 02:36:04 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Adam Lindberg <adam.lindberg@wooga.net>
Cc:        RW <rwmaillists@googlemail.com>, freebsd-questions@freebsd.org
Subject:   Re: Pidfile generated by /usr/sbin/daemon not usable by rc.d script
Message-ID:  <20160606022421.T15883@sola.nimnet.asn.au>
In-Reply-To: <5C74A843-C2EB-424B-9254-0CD68A07E480@wooga.net>
References:  <mailman.75.1464870067.82158.freebsd-questions@freebsd.org> <20160602230511.W15883@sola.nimnet.asn.au> <5C74A843-C2EB-424B-9254-0CD68A07E480@wooga.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 3 Jun 2016 10:18:53 +0200, Adam Lindberg wrote:

 > We are using FreeBSD 10.1 STABLE. We are trying to demonize an Erlang 
 > program. Erlang itself has support for detaching but cannot write 
 > pidfiles. That˙˙s why we˙˙re trying to use daemon to wrap it.
 > 
 > My experience is also that read works in all cases without a newline, 
 > except from inside the rc script. That I cannot explain.

I'm mystified too.  Sounds like raising a bug might be your best bet; it 
may be come across by someone who knows more or recognises something.

Looking at your sh -ex runs, good and fail, the only thing I wonder 
about is whether running it without -e might make any difference ..
although the sourced /etc/rc.subr certainly should be -e safe.

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160606022421.T15883>