Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2014 12:19:22 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Scot Hetzel <swhetzel@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, Erich Dollansky <erich@alogt.com>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: service doen't get started at boottime, but can start manually
Message-ID:  <20140910121922.32870017.ohartman@zedat.fu-berlin.de>
In-Reply-To: <CACdU%2Bf8eYF_HbwqOq0RoC4dq_mG1io5LYfafyipzMn-EzVq9xA@mail.gmail.com>
References:  <20140907090321.12bbc428.ohartman@zedat.fu-berlin.de> <20140907153342.2366ad8b@X220.alogt.com> <20140907094308.6c466d9f.ohartman@zedat.fu-berlin.de> <CACdU%2Bf_%2BB353Hyv2cHir=Jp53MZoKsFeu4i=spDKEAgsjHmcVQ@mail.gmail.com> <CACdU%2Bf_fby%2BKUUWTEDJrcPSdTdYNx=c2-WMG-pP%2BeR8peuXwiQ@mail.gmail.com> <20140907112811.5570fc85.ohartman@zedat.fu-berlin.de> <CACdU%2Bf-w4v_8ebe=VsEJn9f4pu_MGdOfugjeL=Wkpyp6PE=TWg@mail.gmail.com> <CACdU%2Bf8eYF_HbwqOq0RoC4dq_mG1io5LYfafyipzMn-EzVq9xA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/tc5Ne3zdM1w3APHA8XJmZRU
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Am Sun, 7 Sep 2014 11:16:37 -0500
Scot Hetzel <swhetzel@gmail.com> schrieb:

> On Sun, Sep 7, 2014 at 10:44 AM, Scot Hetzel <swhetzel@gmail.com> wrote:
> > I created the rc.d/refdbd script by copying /etc/rc.d/inetd and make a
> > few minor changes.
> > This script (untested) should do what the scripts/refdb.in and
> > scripts/refdbctl.in were doing:
> >
> > #!/bin/sh
> > #
> > # $FreeBSD$
> > #
> >
> > # PROVIDE: refdbd
> > # REQUIRE: LOGIN
> > # KEYWORD: shutdown
> >
> > . /etc/rc.subr
> >
> > name=3D"refdbd"
> > rcvar=3D"refdbd_enable"
> > command=3D"%%PREFIX%%/bin/${name}"
> > pidfile=3D"/var/run/${name}.pid"
> > required_files=3D"/etc/${name}.conf"
>=20
> I missed required_files in my editing of the original script.
>=20
> If refdbd does have a configuration file, changes this to point to the
> correct file, otherwise this can be removed.
>=20
> > extra_commands=3D"reload"
> >
> > load_rc_config $name
> > run_rc_command "$1"
> >
> > Place the above in textproc/refdb/files/refdb.in, then add:
> >
> > USE_RC_SUBR=3D refdbd
> >
> > in textproc/refdb/Makefile.
> >
>=20

It seems to me, that when a port installs a script appended with "*.sh" in =
etc/rc.d/, the
script gets executed anyway - regardless wether the service is enabled
in /etc/rc.conf[.local] or not. This is especially the case for the origina=
l port
textproc/refdb.

The reason why especially one particular machine rejected the startup of th=
e service was:
I changed the script's name from refdb.sh to refdb and with the lack of the=
 correct
syntax and definitions inside it, the system (11.0 CURRENT) did not start t=
he service
while the other systems running refdb used the oldstyle refdb.sh script.

Just for the conclusion of the obscure (at least for me) behaviour.

Thanks for your time,

Oliver

--Sig_/tc5Ne3zdM1w3APHA8XJmZRU
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUECWuAAoJEOgBcD7A/5N8YbwH/3cD2RxASJONgP/r9IdH/99H
WwPC/o+W/qLn4hwnQEkeIifd4ir4u3NWDWqSJ/XXyQ35XOSESV7JPi+qNR9eGaSs
/uMrAvYKvGM8T8lLK/FWmBEy2z737Ltfo23feeZHuc4VPWJ0uOzkcH1xD1klsLxM
nX1oMM37FFR3A14UJwuhaL2OxuxACMjm3MXwWze90yuRgQKI2FFbg+rn0qaYffTt
dCodgrGXaH72w2ZrYIRQeDzlVmgghmZ/3sLV/MPOHdLngSAo5OWc7QL7fx6tXRSR
ZpSIr+qHwgf770Z022TGZZ6XoutmPg631Q+GS6lPzSVMC01r96XZi4cVcGnWXRw=
=vyx5
-----END PGP SIGNATURE-----

--Sig_/tc5Ne3zdM1w3APHA8XJmZRU--



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