Date: Tue, 29 Mar 2016 13:05:26 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: www/obhttpd and question marks in sockstat Message-ID: <56FA6F86.3040302@infracaninophile.co.uk> In-Reply-To: <20160329112840.GA5801@box.niklaas.eu> References: <20160329112840.GA5801@box.niklaas.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UlNATpDK9MaKn7jW1lNKNEPLobfEKH65W Content-Type: multipart/mixed; boundary="rJ0hFuOURWVhrOLskWblGd3jklOwg3i0C" From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Message-ID: <56FA6F86.3040302@infracaninophile.co.uk> Subject: Re: www/obhttpd and question marks in sockstat References: <20160329112840.GA5801@box.niklaas.eu> In-Reply-To: <20160329112840.GA5801@box.niklaas.eu> --rJ0hFuOURWVhrOLskWblGd3jklOwg3i0C Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/03/29 12:28, Niklaas Baudet von Gersdorff wrote: > I am trying to get www/obhttpd running in a jail. `service obhttpd > start` works and I get it listening on port 80. But if I run `service > obhttpd stop` I encounter two problems: >=20 > 1. It seems that there's a problem terminating all related processes. >=20 > Stopping obhttpd. > kill: 8221: No such process > kill: 8222: No such process > kill: 8223: No such process > kill: 8224: No such process Looks like the obhttpd process is trying to kill of its children individually, but they've all already been killed. Possibly by a signal to the whole process group. It's untidy, but it has achieved your aim of killing the obhttpd processes. Try watching what happens in top(1), and tailing the logfile(s) as you shutdown the obhttpd service. You should see obhttpd and its child processes disappear as you type 'service obhttpd stop', and the child process pids should correspond to what you see in the error message. > 2. I end up with some ports open that I don't know how to close. >=20 > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN A= DDRESS =20 > ? ? ? ? tcp6 2a00:c98:2200:af07:6:0:1:1:80 *= :* > ? ? ? ? tcp4 10.15.1.1:80 *:* >=20 > Some ideas on what could be causing the first and second issue? How can= I close > these ports manually? Is this worth a bug report or a mistake on my sid= e? This connection is already closed. You can tell by the question marks. It only still exists in the sockstat output as the kernel is hanging onto the connection details so it can reap any stray packets that may, belatedly, arrive. If you wait patiently, these lines will eventually disappear from the sockstat output. Or you can just restart the daemon anyhow -- it should come up normally. Cheers, Matthew --rJ0hFuOURWVhrOLskWblGd3jklOwg3i0C-- --UlNATpDK9MaKn7jW1lNKNEPLobfEKH65W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJW+m+MXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnVogP/1IzlLOG/RamSmxkxB2U5eRm xpLH1Xem60rKQQrCjtWrtvlsr8bfYGc0OYexqURNzPRoe4GGQTjfEGwYsfwFEsWU 3j8z2lu4wbzAcmGKvVwdG+wvzfRijnBUamHDRbBSDADn6cgIkYk491jbaDrgsY56 wXrYeGpFAzYVIXkyyaGF9Qdt0nPCID724FYdPcQUsYsXwV1URM0Oi7BmNxHW4pwm CnByfwI9XdQZnwMb+6NPbO02oMN8WozP0OPDzzdktrtQPmzFGkOj+YMNKWUmayrf w+JYgBzA/wBl+5fzvzOLgBLv1UZAIqx8EJdCtiIPmubR0WeqeyiKcjEcyUpol0JD mTbg+ySjapV98MeNqpF05npLi3Melwmac0XXg+SnZI7kDpD0z7PKETnQB+pOVuQ6 t3ZvTJ9VLv0iNHUWtP6gI03AmDBCQkEC75WwJ/oItEn74EwlWuGwwQ+syaB62wr1 lEYH8i2wPWypHhAr+PQC8lDmWvHfrYjf1sEdliwOTWwzAGXo9LskfcnHZBQrb4IQ Bk+LPOZYvxA4NLNUUu/7ZvcUfe5fPmSJ8w2DoYMryE7bWsRlOVGUdbkP0chanlHi IX5VFCHWai7eP06ClVY2AAui7xBQXZ82Ockn4wHj2vaCu7QxS5kh/wiYtdS+Cdzh 3fGTsmc+0EwZVm0iimre =k0+7 -----END PGP SIGNATURE----- --UlNATpDK9MaKn7jW1lNKNEPLobfEKH65W--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56FA6F86.3040302>