Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2017 09:09:59 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: pkg issue after FreeBSD 11 upgrade
Message-ID:  <4c16c960-3b4a-75ab-41ed-51c8109b940a@FreeBSD.org>
In-Reply-To: <CAJajdNUJGgcmvetRFNbtcpwBkzcyArMSg4F2bBELs=qHH1pB=w@mail.gmail.com>
References:  <CAJajdNUJGgcmvetRFNbtcpwBkzcyArMSg4F2bBELs=qHH1pB=w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--9jSF9w5bpp8JT7x2j4JHpE7A8kbPHx6XI
Content-Type: multipart/mixed; boundary="un3s2IolILiwJEK1kGkDPn7lv7qeATwJc";
 protected-headers="v1"
From: Matthew Seaman <matthew@FreeBSD.org>
To: freebsd-ports@freebsd.org
Message-ID: <4c16c960-3b4a-75ab-41ed-51c8109b940a@FreeBSD.org>
Subject: Re: pkg issue after FreeBSD 11 upgrade
References: <CAJajdNUJGgcmvetRFNbtcpwBkzcyArMSg4F2bBELs=qHH1pB=w@mail.gmail.com>
In-Reply-To: <CAJajdNUJGgcmvetRFNbtcpwBkzcyArMSg4F2bBELs=qHH1pB=w@mail.gmail.com>

--un3s2IolILiwJEK1kGkDPn7lv7qeATwJc
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 10/08/2017 22:05, Cassiano Peixoto wrote:
> I ran into an issue after FreeBSD 11 upgrade. I have some meta ports th=
at
> starts services like slapd.
>=20
> Its has been working fine on 10-STABLE. But after FreeBSD
> 11-STABLE r321625M upgrade it stopped working.
>=20
> Here is a simple example of my pkg-install.in script:
>=20
> #!/bin/sh
> /usr/local/etc/rc.d/slapd stop
> /usr/local/etc/rc.d/slapd start
>=20
> I can see its executing while upgrading a package:
>=20
> Stopping slapd.
> Waiting for PIDS: 13875.
> Starting slapd.
>=20
> But looking if the process is running, it's not:
>=20
> # ps ax | grep slapd
> 14164  0  S+     0:00.00 grep slapd
>=20
> Then I manually run the rc.d script and the service starts:
>=20
> # /usr/local/etc/rc.d/slapd restart
> slapd not running? (check /var/run/openldap/slapd.pid).
> Starting slapd.
>=20
> So my question is: something has changed on FreeBSD 11 not allowing thi=
s
> kind of execution?
>=20
> BTW, I'm using pkg 1.10.1 and my ports collection is as same as I was u=
sing
> on FreeBSD 10.

Restarting daemons after upgrading is something the project has been
quite resistant to implementing.  Mostly because as soon as you start
looking into it in any depth the true complexity of doing that sort of
thing reliably for any conceivable system becomes apparent and you end
up muttering darkly about systemd and losing the will to live.

However, yes, restarting slapd -- it's clear that your script does get
called, but slapd fails to start at that point during the upgrade
process.  slapd is well known (at least to me) for failing to start
/silently/ -- you need to check the process is actually there after
trying to start it, and look at the logfiles and so forth.  It also
seems to quit at the slightest provocation, presumably to avoid any
potential for data corruption.

So check you logs to see why slapd didn't start.  It's quite possible
that it was simply that something else that slapd needed wasn't
available at that exact point during the upgrade process, and just
waiting until the upgrade had finished would sort things out.

	Cheers,

	Matthew


--un3s2IolILiwJEK1kGkDPn7lv7qeATwJc--

--9jSF9w5bpp8JT7x2j4JHpE7A8kbPHx6XI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJ8BAEBCgBmBQJZjWZYXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT0KkP/1O0jtg8MhyRD6LRFeYNfods
G1YVYcZndXPRD5eNBed+I+z4oisAEDOUuvTFinfiooHKluZWmimbz6it+z9uxsU5
n7xKLo9quRnS37wey3R9ffA8wLVJ8ISNANOtLYWTO9P6US/9PmyhueFuCRS4wS0S
0LxalvMFZsDRhDY+BNUreDTdjgezD7zNiyS6GLY+idGV4EecloeAvk72ovPdugRS
VdKyedkJ2iJJQ0c/tCbXu3O/+VUKnqQlEvAJiNFaaVCYNI1CrlzH7ZN3Ju8tOdFN
eD9/xUxMkuW/nmC654CWqQFP3Zlf6BzeDrr3mi+VOpDDbnf6qx+tl8WLH+YABenI
jeV/G1RDCLOYcodsZLLaKzKx2N3yUG7T2OmDH+g+Rto3uvkwMFiCOGioSzVsDCvV
d+/nygGEEtX8FuFRK8D9PGkMGxazrH61W7Lny9j1MN8/jlOV4xcDyUIkOi80oUvm
vOPRHWhIyhQbCQNMebto2xM3ZtqHAc0FuGghvdObbcjDR62FONYnSDBxvI10n6OW
WLCU0bLu4MytCz2hrQFXX+hpXwr/H88aZwVEzx4Pq10w7dfTtaw8Fn7sOb4ZcKYn
R6LVbUGmRBGy4EjUw1yGwFOoxbPD/K87+waKsfFFEkmIqk+0+Rs79Ze9Vvtuf6dr
i2rIsqGMDiG43izFv39i
=CRML
-----END PGP SIGNATURE-----

--9jSF9w5bpp8JT7x2j4JHpE7A8kbPHx6XI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c16c960-3b4a-75ab-41ed-51c8109b940a>