From owner-freebsd-questions@freebsd.org Tue Mar 29 21:34:33 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 4A00DAE23F2 for ; Tue, 29 Mar 2016 21:34:33 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 18D7F1215 for ; Tue, 29 Mar 2016 21:34:33 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by mail-ob0-x231.google.com with SMTP id m7so27786853obh.3 for ; Tue, 29 Mar 2016 14:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=aaohf4bi9Ddl90VWzpdKBoLP61BnTY6YqaBKFfP4q48=; b=QVROgVXNAVybrBvRDh91GH5wp2q8rLBf+C96NsEczEX1gXjNOfc5pVj9eI9S9+mndp fzYiJWZ8UHLCj+bMD9FM9nOJzVaG7VFS1XRc0bihWA6RhA+HaBrcsEzTMDEe8NygeUEQ ofnAtHQhoL/gr5WP5mVfkjDIPGY7e+PMpLACcQsYjwF2bTWH+C2x/r8woKp6JR10W0sD um7MioQaQ+KGuRCaXpRdJ5p+uEu6oKnbpSPstDJKpFdBeA1qsNoDGLU9yliRxBzQEIAd D7W1qhHzr9bYXF7VmyFtiQfMU2Pj8Ba/UHBRSpD2G60p9eka4JmZf68Pj88VCLgOraTN 41sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=aaohf4bi9Ddl90VWzpdKBoLP61BnTY6YqaBKFfP4q48=; b=MnuTa5ojQXAaMpQeonqBYMFgQroMwbAi9rIRCS5opfJD0bqyA0qIg9yt6z2obhUjXs SmaS5lQ2C6mCkmK5dW/mwbmo/wOM7hqN76j4VqPl/GiH8sMywmztYgZtWzZ6HXUDQKs5 Lievqp4zlE7LES5p4Z3Qn2kiZg5RL0LH0hW1lfu+oe3pwDz8rxAU4cxW2JRpC0UlG3cc pDHdLb+b1ONyee+EsCyKht96BGtRX7o564nAEpCJQ23sDRSxe1KckS4X+KmaKfKdAE6F mNb1ZdhAXRQOMseN4ge43cjGX4io2Pib0JRjJqGADEc5fyUhXUCFlPVv5PLMrRRdcQ7+ zaaA== X-Gm-Message-State: AD7BkJImmLWoGE6fdXb5gQs72UqPlitmTJyKv4TBHtWCvSE5qCLj0PvtycN5PFC0ZE3yW/Z+epNPSm6o1G2x5Q== MIME-Version: 1.0 X-Received: by 10.202.207.151 with SMTP id f145mr2422760oig.44.1459287269189; Tue, 29 Mar 2016 14:34:29 -0700 (PDT) Received: by 10.202.175.13 with HTTP; Tue, 29 Mar 2016 14:34:29 -0700 (PDT) Date: Tue, 29 Mar 2016 23:34:29 +0200 Message-ID: Subject: fetchmail service do not stop cleanly;it ignores TERM signal From: =?UTF-8?B?Sm9zw6kgR2FyY8OtYSBKdWFuaW5v?= To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 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: Tue, 29 Mar 2016 21:34:33 -0000 Hi, I have noticed that fetchmail service hangs in stop phase. I have the following in rc.conf: fetchmail_enable="YES" fetchmail_users="juanino" fetchmail_juanino_polling_interval=60 When I have to restart the service, it hangs forever: # service fetchmail restart ===> fetchmail user: juanino Stopping fetchmail. Waiting for PIDS: 9284 The only way to stop the service is to send the INT (or KILL) signal: # pkill -INT fetchmail It seems to be that is ignoring TERM (or HUP) signal. Ugly workaround: echo "sig_stop=\"INT\" " > /etc/rc.conf.d/fetchmail to force the INT signal instead of TERM. The same issue applies to some other services as polipo. It is not clear for me if this issue is freebsd specific. Any idea?