From owner-freebsd-ports@FreeBSD.ORG Sun Sep 7 07:43:15 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A5DCEE5; Sun, 7 Sep 2014 07:43:15 +0000 (UTC) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 218731E27; Sun, 7 Sep 2014 07:43:14 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.82) with esmtp (envelope-from ) id <1XQX7x-002uIH-9s>; Sun, 07 Sep 2014 09:43:13 +0200 Received: from g226177160.adsl.alicedsl.de ([92.226.177.160] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.82) with esmtpsa (envelope-from ) id <1XQX7x-000sVV-66>; Sun, 07 Sep 2014 09:43:13 +0200 Date: Sun, 7 Sep 2014 09:43:08 +0200 From: "O. Hartmann" To: Erich Dollansky Subject: Re: service doen't get started at boottime, but can start manually Message-ID: <20140907094308.6c466d9f.ohartman@zedat.fu-berlin.de> In-Reply-To: <20140907153342.2366ad8b@X220.alogt.com> References: <20140907090321.12bbc428.ohartman@zedat.fu-berlin.de> <20140907153342.2366ad8b@X220.alogt.com> Organization: FU Berlin X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/aElRYB/xA1rFHRA3VWWg0s_"; protocol="application/pgp-signature" X-Originating-IP: 92.226.177.160 X-ZEDAT-Hint: A Cc: FreeBSD CURRENT , FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2014 07:43:15 -0000 --Sig_/aElRYB/xA1rFHRA3VWWg0s_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Sun, 7 Sep 2014 15:33:42 +0800 Erich Dollansky schrieb: > Hi, >=20 > On Sun, 7 Sep 2014 09:03:21 +0200 > "O. Hartmann" wrote: >=20 > >=20 > > I use a service (textprox/refdb from ports, refdb_enable=3D"YES" > > in /etc/rc.conf.local) that is supposed to startup at boottime. On > > one CURRENT system, running > >=20 > > FreeBSD 11.0-CURRENT #3 r271210: Sat Sep 6 22:39:59 CEST 2014 amd64 > >=20 > > the service is not started at boottime, but I can start the service > > manually via > >=20 > > service refdb start > >=20 > > I tried enabling rc_debug=3DYES in /etc/rc.conf but I do not see any > > failure of the start attempt of that specific service in the logs or > > on the console.=20 > >=20 > > Is there an elegant way to debug rc.d and the startup procedure > > without having the system reboot (I do not have jails or VM, sorry)? > >=20 > could it be that the spelling in either rc.conf and the spelling in the > actual script differ so that FreeBSD does not start it? >=20 > Erich No. If it would be the case, I guess starting it manually wouldn't work eit= her. The fact is that the port textproc/refdb uses a startup script named "refdb.sh" and = by maintaining the port and on the way to make it more CURRENT compliant, I started with r= enaming it to "refdb" and it seems this is the culprit. The script textproc/refdb uses is a bit awkward since it targets both *BSD = and Linux init/rc scripts and the initial rc.d/refddb scripts gives control to anothe= r script called refdbctl which seems to perform all the stuff FreeBSD's /etc/rc.subr= is providing. I renamed the script back to "refdb.sh" by now and the service starts again= as expected. I guess the spawning into a subshell fails somehow at that point= when booting the box. Oliver=20 --Sig_/aElRYB/xA1rFHRA3VWWg0s_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUDAyQAAoJEOgBcD7A/5N8P64H/0ZC3REJHXrlgjpMIOZmr/qb CgRFAKNfk81aBKjh4TRU9uwQKYMjTwIPSI18XrNN8+vZrrIsMbzZvZHJbbuO9aMp q0I6EYTvgOpLIZf1RtQZU+jY1gJktnr6RspRJAgzSGDMbFGmkyxLnQ37UTj9xLPm CdAYac7geZUL1vtzgUgnpO0AoSSitxNz9xAmwB40Zs/RCcXHzgVjUyVdoeMRGVsA fAR4+WFaFa82vUrBOBu14f90aDHOYAyVmr7+Wr+8as3HjoGQX6k30gSs3U5qQKDn e0v+cBHrSz69RrF+F1UOpNMdyn5mMYzXWmT0+sFyR68EUXJWVLUatnaPNAYvw6M= =od7S -----END PGP SIGNATURE----- --Sig_/aElRYB/xA1rFHRA3VWWg0s_--