From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id QPAVD2V+N2TVagEASxT56A (envelope-from ) for ; Thu, 13 Apr 2023 06:00:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iOoUD2V+N2QHrQAAauVa8A (envelope-from ) for ; Thu, 13 Apr 2023 06:00:37 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C357918B73 for ; Thu, 13 Apr 2023 06:00:36 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmo7u-0002hR-1p; Thu, 13 Apr 2023 00:00:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmo7r-0002gE-Dh for guix-devel@gnu.org; Wed, 12 Apr 2023 23:59:59 -0400 Received: from forward500b.mail.yandex.net ([2a02:6b8:c02:900:1:45:d181:d500]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmo7o-0001BG-QU for guix-devel@gnu.org; Wed, 12 Apr 2023 23:59:59 -0400 Received: from mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:1d21:0:640:c9e4:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id 421735F62A; Thu, 13 Apr 2023 06:59:49 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-canary-88.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id hxNYAN8Wr0U0-rrzBEPHz; Thu, 13 Apr 2023 06:59:48 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ya.ru; s=mail; t=1681358389; bh=H0Lz9ulyUgD/3oqhR3wsvoSVF9wpZ70b/ZND/234tng=; h=Message-ID:Date:Cc:In-Reply-To:Subject:References:To:From; b=BWkvl7gbXO5QKuTIfPUYhpCnb5bFuB7xqLKhskf/xvdsd1PqYt+KAzJZN9OTvD0iS 19LaRg5AIyTAbCTBfQH/PhsaXsjGNWR3wtRi20jNObVyTbRsK9LDc862Yzwe1ZS82u eN25wiW1yfPBkUDfHa0iPnsKJyOtUU2U4In4vBOc= From: Ivan Sokolov To: Vladilen Kozin Cc: guix-devel@gnu.org Subject: Re: herd stop hangs In-Reply-To: (Vladilen Kozin's message of "Wed, 12 Apr 2023 17:40:39 +0100") References: Date: Thu, 13 Apr 2023 06:59:35 +0300 Message-ID: <87leiw5t5k.fsf@ya.ru> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a02:6b8:c02:900:1:45:d181:d500; envelope-from=ivan-p-sokolov@ya.ru; helo=forward500b.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681358437; a=rsa-sha256; cv=none; b=cZO0sfbFE4g37Jqse/OEKcnbo9N7Dj/Z4ljrN0MneWIehHwju6ktA5k5AQ6BtCZ+p4mqJ+ P8pkLCVY2r5kx1aW3mDZUwjK8aupGJekZrYTqDTFuBk9Exs5+6vj0RD5s5iq+gvCHJ8Gb4 WwOlUUB6k9tpqSCcsXR37li/2ttmtp8TEfaXVHwKQfQeg8tV5772dFqUeuobY4gELFFSVi O8k3hN61AxlWgOfkbperKy7tJK4H6G6ACmepwUUe/FhJaFC2E0BPLWiowyz2ca29Wsp5d2 H+fqdNN2h/+eg0azxP2UWetHH3slgKRER6CmfV0JBPKb8/y3/DhPnWD8XClbSg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=BWkvl7gb; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=ya.ru ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681358437; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=H0Lz9ulyUgD/3oqhR3wsvoSVF9wpZ70b/ZND/234tng=; b=cSq3uMschTtSwO/QwXdOSAicIU3Prc7m7do5sTIGBPq6UNu3SSZN0+/k/c+OrKWiyTEzKl alviT+RLrcZu+YtqQ+5kheNune5ilI+aunO1F3GDVCLxcRuYwhaQcD9sGm/kjSoTaj2i8a Ndwp1OpLoICWrqQVLsHIGqkL+1vHBBU3LDasq4BKU2SLA6pYdDqPcIKxuGwZAuQTgrHfbn U0VVot2d7sqYYbBBQ1KlnZtjSZ8W4KZ4bpWaOqmdf1GpiCMOljc6y9GppEXqIfDIxnMVVO +Ohjhn6+JJNV3YFIF79eQm2k9+oLbKzt7/4XVWdZagwR1XWJCIKqJEKw8jB5Hw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.58 X-Spam-Score: -6.58 X-Migadu-Queue-Id: C357918B73 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ya.ru header.s=mail header.b=BWkvl7gb; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=ya.ru X-TUID: E+FmWOiTkv95 Vladilen Kozin writes: > Been driving me nuts, cause Java handles SIGTERM but just in case I even added > shutdownHook to my app that should explicitly execute on SIGTERM and other such signals. > Testing it on OSX e.g. works just fine. But stop wouldn't work on guix. I then decided to try > everything manually: > > $ start my java app from the console > > In another console > $ sudo pkill -TERM pid > > and nada ... it's like signal isn't even delivered. > $ sudo pkill -KILL pid > > Eh ... still nothing > $ sudo kill -s SIGTERM pid > gets delivered > > Ha? kill vs pkill ... ha? Could this give a clue as to why sudo herd stop won't work? > What is going on here? Any ideas? I'm completely lost at this point. I don't know about Shepherd, but I've never seen pkill used with a pid, and pkill(1) does not mention it either.