From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 31 15:00:00 2018 Received: (at submit) by debbugs.gnu.org; 31 Jul 2018 19:00:00 +0000 Received: from localhost ([127.0.0.1]:36661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkZsF-0003Kf-TK for submit@debbugs.gnu.org; Tue, 31 Jul 2018 15:00:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkZsB-0003KN-Ns for submit@debbugs.gnu.org; Tue, 31 Jul 2018 14:59:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkZs5-0002v1-Do for submit@debbugs.gnu.org; Tue, 31 Jul 2018 14:59:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57983) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fkZs5-0002uo-9L for submit@debbugs.gnu.org; Tue, 31 Jul 2018 14:59:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkZs3-0005dp-5f for bug-guix@gnu.org; Tue, 31 Jul 2018 14:59:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkZrz-0002pZ-VR for bug-guix@gnu.org; Tue, 31 Jul 2018 14:59:47 -0400 Received: from mx1.riseup.net ([198.252.153.129]:52179) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fkZrz-0002ne-Kj for bug-guix@gnu.org; Tue, 31 Jul 2018 14:59:43 -0400 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id B95301A048F for ; Tue, 31 Jul 2018 11:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1533063581; bh=y8IggjLN8rwfpEeWBmSjR9xNyW8Ci2wOyKfiJHEFDdU=; h=Date:From:To:Subject:From; b=F3jbGWNiPl8m8QUagTF5VogtU6OtnSI9Uu9I8xXUKqvsWRYmWV/Pgy2zFM7Z939g4 KtzpAHtGy4ssNL9jOlCJuHkWRufVCHU72c0LJU34XtkiNIofAuGkWtmqIy4gA6YOvU FFUE+S7o7KuUc5/vTKaVv3wsBPL1fKJA3kUztCSk= X-Riseup-User-ID: 719539AB3381076EC04E48EE85AB354B620FEFA1B71891545FC9B6441A1D6F7E Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id 47A5661A02 for ; Tue, 31 Jul 2018 11:59:41 -0700 (PDT) Date: Tue, 31 Jul 2018 20:59:11 +0200 From: Tonton To: bug-guix@gnu.org Subject: herd stop mcron yields instant shutdown of computer Message-ID: <20180731205911.111b62de@merlin.browniehive.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/iWXiKVxx+FsD6mWQrxvZPI_"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.1 (-----) --Sig_/iWXiKVxx+FsD6mWQrxvZPI_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Triggering action: from bash: sudo herd stop mcron Result: Exactly the same behaviour as when I call halt/poweroff/reboot from bash. Except one of the messages clearly seen midscreen on the TTY is shepherds message that mcron has been stopped. It then scrolls off as the system is doing it's regular shutdown routine. And reboots, ending at the normal login screen. Expected result: mcron service stopped with maybe a message to stdout or lo= g. System still running. Guix pull was at: Generation 9 Jul 28 2018 22:59:26 guix 48d7ac1 repository URL: https://git.savannah.gnu.org/git/guix.git branch: origin/master commit: 48d7ac175f69fea587eaa0358eddb5c76205e8ad The configuration on the host at the time can be found at: https://notabug.org/thomassgn/guixsd-configuration/src/e8404bd617547b41d57b= ceaaa880ca8109360e03/config.scm (I'm guessing most of it can be stripped out, I'll see if I can reproduce in a minimal os) I was implementing the battery-check job for mcron (line 71). Which I know does not work as is in the config above. It has since been improved. Here is /var/log/messages around the time (removed ip's and some ntpd lines because ip's): 750117:Jul 31 18:24:55 localhost shepherd[1]: Service mcron has been starte= d.=20 750118:Jul 31 18:24:55 localhost shepherd[1]: Service mcron has been disabl= ed.=20 750119:Jul 31 18:24:55 localhost shepherd[1]: (Respawning too fast.)=20 750172:Jul 31 18:37:42 localhost shepherd[1]: Enabled service mcron.=20 750173:Jul 31 18:37:42 localhost shepherd[1]: Service mcron has been starte= d.=20 750174:Jul 31 18:37:42 localhost shepherd[1]: Respawning mcron.=20 750175:Jul 31 18:37:42 localhost shepherd[1]: Service mcron has been starte= d.=20 750176:Jul 31 18:37:42 localhost shepherd[1]: Respawning mcron.=20 750177:Jul 31 18:37:42 localhost shepherd[1]: Service mcron has been starte= d. =20 750178:Jul 31 18:38:20 localhost shepherd[1]: [No documentation.]=20 750203:Jul 31 18:43:54 localhost shepherd[1]: Service mcron has been stoppe= d.=20 750204:Jul 31 18:43:54 localhost shepherd[1]: Exiting shepherd...=20 750205:Jul 31 18:43:54 localhost shepherd[1]: Service console-font-tty2 has= been stopped.=20 750206:Jul 31 18:43:54 localhost shepherd[1]: Service term-tty2 has been st= opped.=20 750207:Jul 31 18:43:54 localhost shepherd[1]: Service cups has been stopped= .=20 750208:Jul 31 18:43:54 localhost shepherd[1]: Service rpcbind-daemon has be= en stopped.=20 750209:Jul 31 18:43:54 localhost avahi-daemon[833]: Got SIGTERM, quitting. 750210:Jul 31 18:43:54 localhost shepherd[1]: Service avahi-daemon has been= stopped.=20 750211:Jul 31 18:43:54 localhost avahi-daemon[833]: Leaving mDNS multicast = group on interface wlp0s20u2.IPv6 with address 750212:Jul 31 18:43:54 localhost avahi-daemon[833]: Leaving mDNS multicast = group on interface wlp0s20u2.IPv4 with address 750213:Jul 31 18:43:54 localhost ntpd[827]: ntpd exiting on signal 15 (Term= inated) 750218:Jul 31 18:43:54 localhost shepherd[1]: Service ntpd has been stopped= .=20 750219:Jul 31 18:43:54 localhost connmand[826]: Terminating --Sig_/iWXiKVxx+FsD6mWQrxvZPI_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEJpQ8ER/dPhCuYhy5z+UMpbuBoZAFAltgsYAACgkQz+UMpbuB oZBbdhAAlDGGk9my7b0ceuzRSfNft73EoC+0X5Ebp+jkKURhzO6qqfOSHrWU+CjP lZzhKEmuzbzJd59f/mh+L2gZ6TeUqgsYBGp1eJQb/crTUdoDCG5qwkGSHPhDt5QN a5wKkAYSZ3IrjBWuXUtZ2To0rA2BtWb1BfcGXtqWsYmoEagLm7cNu0SifUu1oBsW V1ptGKA46IXq0t/lr2PU7nCQW5JLqGdeFFAnRUBZjuriGa58LH1XTpDnBGUQEu/W OaqHJmz0Uw90wdJJJdiRP/uMqKBRpm7E+QTYhpRxcWh1TS8Sozmw4V0vFUUMkcH3 oBevab9fD58kKP22EuRehDN3loXv46W2LoKNtvdNJMTc71WD8T6gxEyfkf3Gt1k5 WFTQrcKH3crhRSWVhgmbpj+drDPXQVoqz9lG7WNjpm9aJzcrCWKTr34C+NJHqhp7 JxQWXwcrjW8z17p7jIrktvT00f7SVCA0l1qxD5KE8KeR33hzSEC+IkZXQCorjb3a qu0wn8fTbytCVjxWSIv/fnA1TVT/x5zfvPQ/79totCjfG8883lpAJNSmZqib+/Un ccDHZqQfAj+x+ygE9pCm+Rao2kQV0px8kvYWMDffulArkQGRT3lwcBvZg5hXZvPj 2JkhKg3dYF8RZOckhdVvFvC0vO1VN3ifBTrORJGnf44EV2YavAI= =4mpJ -----END PGP SIGNATURE----- --Sig_/iWXiKVxx+FsD6mWQrxvZPI_--