From patchwork Tue Oct 8 09:27:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1173146 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43c; helo=mail-wr1-x43c.google.com; envelope-from=swupdate+bncbcxploxj6ikrb4vm6hwakgqews7symq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="KMtNnZdv"; dkim-atps=neutral Received: from mail-wr1-x43c.google.com (mail-wr1-x43c.google.com [IPv6:2a00:1450:4864:20::43c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46nX7D5ZRLz9sN1 for ; Tue, 8 Oct 2019 20:27:18 +1100 (AEDT) Received: by mail-wr1-x43c.google.com with SMTP id w10sf8862300wrl.5 for ; Tue, 08 Oct 2019 02:27:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1570526834; cv=pass; d=google.com; s=arc-20160816; b=J/Xz7E3yWi0jNG5YG24NmitK4HKknelUz6gu/jHyO+l2SFN6msYr/MdRpPzSGRhgpH bJaCVC0TNQdxk39H3pPCWHZH89k6hiaGfWjhQuLq9UGrz9E39yj6fd64ceoNRf6wfyy2 QKtfeVKHPRQQirrgyrtmpFSBLUzh9cl4kc4wqwNs/D59wdtPWkhqyidOH6w5VU/BWWNd dPFRNTIKjMeRJXg4EzCDDt3mn1lBfONNdz8Hen8Xw9rFbqoDw+R+zm/NiLS9NWSm2b1H 9wkW439nDhTFOdUmGK2A9EPSe0stYun3TB3Yw/Jc9T8gs/w4h00TxytKqwGvrKX7KYYF kW1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:cc:to:from :mime-version:sender:dkim-signature; bh=fcXwHiJ+S07tRTtpjvRJc+kAviGs50HwFINAZRhh+jw=; b=qXjm+n5hRn5pJLARpRqiLuT2oyMJKlaHTM+H6wv7RN+VBTCz+tpl0dEXy/yq/kfJK3 XvtGJYbmdINpWuyOH30ZWnAN+3g59zFHtYnJkItffSJAZghQvhJMnv+oWDBRxfSofuYa niDttyBt7bQZtpED7qzhoVsCeyNpgx22w1Nt1JebU9L+/xJo0q2pe5z/uTXm3+3VlNJY tQAQQ5w5rXYINDIxJ8uSs/DHrIwfdh576Itd7rhWbmVNg3iou99dH7tenlt4WDAFEKsl WICMWLyjKPq8svqf2ZVkM6NB9LG3fH9jER/CAs8iDZyKPegcSs+R6IccB5quutDSxE4d uelw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=fcXwHiJ+S07tRTtpjvRJc+kAviGs50HwFINAZRhh+jw=; b=KMtNnZdv2+1KHUm4TPpzdEwbfJvCR3mjxFjX1IoInkDZVNwLHBBMaF1h4Gp+ecK0Eo kfOwaDM1mN/BXCXdZjz5+whNCPRfJ5rwAfTwoJN5XXsfh9fuAc1UgjRSN43oFJnb0cJ8 VeESe/fiTmYXL+UxpXDEq8TSZCbABF7gxVitdoEcpuCDvNIlQd2Z4QkNYQrlXWLBT3Dp EEnkupjbzyFXqUeWyPIHSBngxZiY3YimCXS2/xG30cGXJAy8Mzbhg+T2UnH6FreLIL5G HNz1z4McXeUsCpKHIbLIhP7DvMQe8o6TFe+y2AVX9V3yF04kQNfxd2oQ57mN+LeP7SLp gIVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=fcXwHiJ+S07tRTtpjvRJc+kAviGs50HwFINAZRhh+jw=; b=tfMNrt9KKxBWWAlELlFDFbSeval+KGl5HIBslSE7oW61J56Bn+bqRKcu1fdkcpmSf1 amguFtE3fvJtDbdfUzTPyETBSQvHiCgC68Pv+U/GfLTDZSXEZ7iHbpq8KTO5ap4Dcvlr 54Pg9OuPBfGbacyJIu0hAB2I0nKBJFC2EBsxdwj1cPr8fwwhwafQO0CfiFBbusjyN8EA MrCtQZbI1fqU0T0fPzQnpST2bAm4BBL5Q49jMukUND+WOz+5OpyxRuZfuB7W5E6pouNt 40E9L6XMMNINot96fEMHskEkESf9DzXMDpz7Zp52JcTe1V5PX2ZWE5VvARRYcoJF9jFV m/aA== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAV70nOyIhKk0PMkCw1HQ6RAzWQ34Un79TSvGx10FujDEgU19I+g wQ86iWz6e71RCwf2LAaOA0o= X-Google-Smtp-Source: APXvYqwRDNi3FKfiTbYtHvA46paLjrHA+k7ivFa9B23IqAfXja2zSf2ZEsDBqkrgwoSdPXyMp/BcvQ== X-Received: by 2002:a1c:a7d2:: with SMTP id q201mr2889210wme.146.1570526834543; Tue, 08 Oct 2019 02:27:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a7b:ce16:: with SMTP id m22ls1006739wmc.5.canary-gmail; Tue, 08 Oct 2019 02:27:13 -0700 (PDT) X-Received: by 2002:a05:600c:2308:: with SMTP id 8mr3122971wmo.67.1570526833922; Tue, 08 Oct 2019 02:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570526833; cv=none; d=google.com; s=arc-20160816; b=sH+KcpHAewJxVT2ZNIPmABIpXmTG4qvlcWo8nUuKhjFkUTWZPC4a8giiIw0Wgoqx4O IOa7nKgdBxFc/TzIS7au7AJuXuuirucBHZZg3Eq+FQ2eHQXPOK68lW3apuIdpmV3AR9p G2/RmEiNTK/Ce2ZYEtsCDb9kKwThnSHgI5twAbD+uAP16kKdC5vRkeliFSMUR1mpIzQp tzPQQGJ08vmZuSitmaWtK6TK2E4l2YgfLsBAmgKJePoLh9yPavYTAG4Xl1JRM+HlbY3Z QsblLhtLBH1I2czRmmatATD2Pb2pXud+YlLb5O7dyh3NrC0TuTTlVvCK4ffH/XYwsxiT STHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from; bh=InqJiIldATMRpd8rY7V2wKgXYtcZrHDFUvv3psQ7tCw=; b=mM+O48Gs1+KuIWz2oLeMnuSAXPla4GL4BMgKR+X8igjwx38uhKiLcAskNp2zrMbQbF KqzEOqYPTo3ndiYPqGdoNQdGQsWS+/RgRoLVVKqJ0AaABsH/DMvGzjXgZfGG0pP7Xn97 6urZT2bc0jjP/vmIDUqW3q4aRbel2KKb3n/a5jpynAjSrsLj6Ts+zyyrj12P4foKTCRq 35FFGuJaSIT18rchU5twAOQ9xwJb+oev6WyJun4D83kepsircIqWIFLookvdj15UvTKi Bz/+Z2vrDOY8g/V8ZJ7OnICJc3u4Q4F+sMSpYRbFziGUKIlOMmRjxXnDpLVMmEQlCmb0 XC/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [2001:a60:0:28:0:1:25:1]) by gmr-mx.google.com with ESMTPS id i7si937302wrs.1.2019.10.08.02.27.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Oct 2019 02:27:13 -0700 (PDT) Received-SPF: neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=2001:a60:0:28:0:1:25:1; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46nX754ymkz1s00Y; Tue, 8 Oct 2019 11:27:13 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46nX754BShz1qqkG; Tue, 8 Oct 2019 11:27:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2rkmObi7sZhv; Tue, 8 Oct 2019 11:27:12 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Tue, 8 Oct 2019 11:27:12 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id CC41F454041C; Tue, 8 Oct 2019 11:27:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dc4iGX9f7tJD; Tue, 8 Oct 2019 11:27:09 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 00395454033C; Tue, 8 Oct 2019 11:27:08 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic , Johannes Schrimpf Subject: [swupdate] [meta-swupdate][PATCH] systemd waiting long to shutdown SWUpdate Date: Tue, 8 Oct 2019 11:27:05 +0200 Message-Id: <20191008092705.2094-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 2001:a60:0:28:0:1:25:1 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Under certain situations, systemd is waiting for a long time that SWUpdate stops. SWUpdate has in fact its own process control management to monitor its own processes and SIGTERM cannot be sent to the children by systemd. Add KillMode=mixed option to let SWUpdate to make its job: systemd will send SIGTERM just to SWUPdate's main process. Signed-off-by: Stefano Babic Signed-off-by: Johannes Schrimpf --- recipes-support/swupdate/swupdate/swupdate.service | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-support/swupdate/swupdate/swupdate.service b/recipes-support/swupdate/swupdate/swupdate.service index 59f6c10..b585616 100644 --- a/recipes-support/swupdate/swupdate/swupdate.service +++ b/recipes-support/swupdate/swupdate/swupdate.service @@ -7,6 +7,7 @@ Documentation=https://sbabic.github.io/swupdate ExecStartPre=-/usr/bin/swupdate-env EnvironmentFile=-/tmp/swupdate.env ExecStart=/usr/bin/swupdate -v -w "-r /www" $SWUPDATE_EXTRA_ARGS +KillMode=mixed [Install] WantedBy=multi-user.target