From owner-freebsd-questions@freebsd.org Thu Mar 31 17:46:03 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53283AE3A4B for ; Thu, 31 Mar 2016 17:46:03 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailout00.t-online.de", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 183151219 for ; Thu, 31 Mar 2016 17:46:02 +0000 (UTC) (envelope-from c.brinkhaus@t-online.de) Received: from fwd05.aul.t-online.de (fwd05.aul.t-online.de [172.20.27.149]) by mailout10.t-online.de (Postfix) with SMTP id 6C62CE97EF; Thu, 31 Mar 2016 19:45:52 +0200 (CEST) Received: from esprimo.local (T5z6HgZCQhtmOODUOEpqlw+W+pjaU1j0OrgW-tz5iwZexLp2ovlp7NmSdgsDuLCQs3@[217.81.137.117]) by fwd05.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1algfA-2F2QCG0; Thu, 31 Mar 2016 19:45:44 +0200 Received: from esprimo.local (localhost [127.0.0.1]) by esprimo.local (Postfix) with ESMTP id C38B045CD9D; Thu, 31 Mar 2016 19:45:43 +0200 (CEST) Received: (from chris@localhost) by esprimo.local (8.15.2/8.15.2/Submit) id u2VHjhZ2050504; Thu, 31 Mar 2016 19:45:43 +0200 (CEST) (envelope-from chris) Date: Thu, 31 Mar 2016 19:45:43 +0200 From: Christoph Brinkhaus To: =?iso-8859-1?Q?Jos=E9_Garc=EDa?= Juanino Cc: freebsd-questions@freebsd.org Subject: Re: fetchmail service do not stop cleanly;it ignores TERM signal Message-ID: <20160331174543.GA40301@esprimo.local> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-ID: T5z6HgZCQhtmOODUOEpqlw+W+pjaU1j0OrgW-tz5iwZexLp2ovlp7NmSdgsDuLCQs3 X-TOI-MSGID: a7eeb003-450a-4899-bba5-f5ccd97e009a X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2016 17:46:03 -0000 On Tue, Mar 29, 2016 at 11:34:29PM +0200, Jos=E9 Garc=EDa Juanino wrote: > Hi, Hello Jos=E9, >=20 > I have noticed that fetchmail service hangs in stop phase. I have the > following in rc.conf: >=20 > fetchmail_enable=3D"YES" > fetchmail_users=3D"juanino" > fetchmail_juanino_polling_interval=3D60 >=20 >=20 > When I have to restart the service, it hangs forever: >=20 > # service fetchmail restart > =3D=3D=3D> fetchmail user: juanino > Stopping fetchmail. > Waiting for PIDS: 9284 >=20 > The only way to stop the service is to send the INT (or KILL) signal: >=20 > # pkill -INT fetchmail >=20 > It seems to be that is ignoring TERM (or HUP) signal. I have faced the same situation. >=20 > Ugly workaround: >=20 > echo "sig_stop=3D\"INT\" " > /etc/rc.conf.d/fetchmail >=20 > to force the INT signal instead of TERM. >=20 > The same issue applies to some other services as polipo. It is not > clear for me if this issue is freebsd specific. Any idea? Some days ago I have seen a related report about 10.3 on the stable mailing list. It has been reported that some services to not stop properly and the enabling of SAVESIGVEC has been detected as a likely trigger. If I remember correctly the proposal was to disable SAVESIGVEC until the real root cause is fixed. may be in the current kernel sources it is already fixed or SAVESIGVEC is re-disabled. I have digged a little bit and found SAVESIGVEC defined in /usr/src/bin/csh/config_p.h. I have simply commented that out=20 and made a new world and a new kernel. This is my current work arround. As said above I am not sure about the current situation. I hope this information helps. Kind regards, Christoph