Devuan bug report logs - #262
[atop] ..atop installs systemd cron job on non-systemd Devuan box...

Package: atop; Reported by: Arnt Karlsen <[email protected]>; Keywords: debian; Done: Mark Hindley <[email protected]>; Maintainer for atop is (unknown).

Message received at [email protected]:


Received: (at 262-done) by bugs.devuan.org; 18 Jan 2023 20:25:37 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Wed, 18 Jan 2023 20:25:37 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id mEqEL4BVyGMDOQAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Wed, 18 Jan 2023 20:24:32 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id B60C7B85; Wed, 18 Jan 2023 20:24:32 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 6C8A4226
	for <[email protected]>; Wed, 18 Jan 2023 20:24:32 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pIEz1-0001WS-Kq
	for [email protected]; Wed, 18 Jan 2023 20:24:31 +0000
Received: (nullmailer pid 10146 invoked by uid 1000);
	Wed, 18 Jan 2023 20:24:31 -0000
Date: Wed, 18 Jan 2023 20:24:31 +0000
From: Mark Hindley <[email protected]>
To: [email protected]
Subject: Fixed in Debian #913364
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debbugs-No-Ack: No Thanks

Version: 2.4.0-1

Notification sent to Arnt Karlsen <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to Mark Hindley <[email protected]>:
You have taken responsibility. Full text available.
Set bug forwarded-to-address to 'https://bugs.debian.org/913364'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.
Added tag(s) debian. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 262) by bugs.devuan.org; 11 Mar 2019 10:10:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Mon, 11 Mar 2019 11:10:02 +0100 (CET)
Received: from mailrelay3-3.pub.mailoutpod1-cph3.one.com (mailrelay3-3.pub.mailoutpod1-cph3.one.com [46.30.212.12])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 1E0D6F609E8
	for <[email protected]>; Mon, 11 Mar 2019 11:05:31 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=iaksess.no [email protected] header.b="MLMqj4E+";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=iaksess.no; s=20140924;
	h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:
	 message-id:subject:cc:to:from:date:from;
	bh=8VDmKrDBK32dIMnkxi5V0tSlEUHeAEPi0GZlnb42zZw=;
	b=MLMqj4E+XXIfwgDD91rZV3CG9FF9jwIjvbZXFeEZ9S1nxsTg1LTY/epDzJ/Ya9dm49OCWj4hFpHYx
	 zz3s9gYSX8VTCAgqewCdy3am2wNoh3CNhpQF1h9lU0dtQGTbTx23rxgMqNrlvgWgG6BTAeoKaW2wFH
	 JMP9MdBroZZOxE5A=
X-HalOne-Cookie: 6021c06dd3252eedad6962fad52b0eee8c56aac4
X-HalOne-ID: 33456c28-43e5-11e9-9a3a-d0431ea8bb03
Received: from sda3 (unknown [92.220.150.219])
	by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPA
	id 33456c28-43e5-11e9-9a3a-d0431ea8bb03;
	Mon, 11 Mar 2019 10:05:30 +0000 (UTC)
Date: Mon, 11 Mar 2019 11:05:28 +0100
From: Arnt Karlsen <[email protected]>
To: [email protected]
Cc: Arnt Karlsen <[email protected]>, Adam Borowski <[email protected]>,
 [email protected]
Subject: ..fix: atop installs systemd cron job on non-systemd Devuan  box,
 was: Bug#913364: real bug, too low severity
Message-ID: <20190311110528.5999da20@sda3>
In-Reply-To: <20181122021559.60f6ac16@d44>
References: <20181110002821.03efcb2f@d44>
	<[email protected]>
	<20181110002821.03efcb2f@d44>
	<[email protected]>
	<20181110002821.03efcb2f@d44>
	<20181122021559.60f6ac16@d44>
X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, score=4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,
	RCVD_IN_DNSWL_NONE autolearn=disabled version=3.4.2
X-Spam-Level: ***
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

On Thu, 22 Nov 2018 02:15:59 +0100, Arnt wrote in message 
<20181122021559.60f6ac16@d44>:
> 
> ..which part of:" # daily restart of atop at midnight
> 0 0 * * * root if [ -d "/run/systemd/system" ]; then systemctl \
> restart atop; else /usr/share/atop/atop.daily \& ; fi" "on a
> non-systemd box" did you miss?

[...]

> ..this bug is insisting on assuming systemctl etc systemd commands 
> and totally disregarding the fact some of us throw out junk "init"
> binaries and move on with ye aulde relics that just works, and fix 
> atop in https://bugs.devuan.org//cgi/bugreport.cgi?bug=262 when we 
> get such clear wont-fix hints in Message #15. 
> 
> ..if you Debian etc systemd guys _do_ wanna fix your #913364, put 
> back in the test for systemd and install atop.cronsystemd if you 
> find systemd on your boxes, and give the rest of us back our 
> beloved atop.cronsysv.  Etc.  Easily found in your well documented 
> $favorite_mirror/debian/pool/main/a/atop/atop_*tar* balls.


..instead you test for systemd every damned time cron runs atop...:
cat /etc/cron.d/atop:"
PATH=/bin:/usr/bin:/sbin:/usr/sbin

# daily restart of atop at midnight
0 0 * * * root if [ -d "/run/systemd/system" ]; then systemctl
restart atop; else /usr/share/atop/atop.daily \& ; fi "

...when that test should happen once, everytime atop is upgraded to 
a new version, or reinstalled, or downgraded to a known good working
version etc, to _decide_which_version_ /etc/cron.d/atop to install,
either /etc/cron.d/atop.sysv _OR_ /etc/cron.d/atop.systemd.


..my _fixed_ /etc/cron.d/atop for non-systemd Devuan etc boxes...:"
PATH=/bin:/usr/bin:/sbin:/usr/sbin

# daily restart of atop at midnight
0 0 * * * root /usr/share/atop/atop.daily \& "

...works nicely enough to warrant closing this bug.



..I would _guess_  an /etc/cron.d/atop like ...: "
PATH=/bin:/usr/bin:/sbin:/usr/sbin

# daily restart of atop at midnight
0 0 * * * root systemctl restart atop \& "

...would work for systemd boxes.


-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


Acknowledgement sent to Arnt Karlsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to [email protected]. Full text available.
Information forwarded to [email protected], [email protected]:
bug#262; Package atop. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 18 Nov 2018 02:00:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Sun, 18 Nov 2018 03:00:02 +0100 (CET)
Received: from mailrelay1-3.pub.mailoutpod1-cph3.one.com (mailrelay1-3.pub.mailoutpod1-cph3.one.com [46.30.212.10])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 01F28F6087B
	for <[email protected]>; Sun, 18 Nov 2018 02:56:04 +0100 (CET)
Authentication-Results: vm6.ganeti.dyne.org;
	dkim=pass (1024-bit key; unprotected) header.d=iaksess.no [email protected] header.b="BsygNe/U";
	dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=iaksess.no; s=20140924;
	h=content-transfer-encoding:content-type:mime-version:message-id:subject:to:
	 from:date:from;
	bh=R5aV0K7I3BcFqAdp19bFWk9wcssqNOR9txI0N1Cl9QQ=;
	b=BsygNe/UeOsMF9vml/1rStmLMu1MQWcDz3cUQvvKPo+ySa4m4r4vuOXabmy89cRuAL/eeI0cI5hH7
	 0DzHg1MSpGI572/5CFQGKebhaJMPDHUPVQWK/i6uqbZdJ7iT+jyTKeBl+wbIHEY4IBcq1d27QLMKUV
	 e2AISsWaHZ2TdbNY=
X-HalOne-Cookie: f220a2c0e107092f62a91953a1bb11f0ed6cb247
X-HalOne-ID: f8b2fa32-ead4-11e8-942e-d0431ea8a283
Received: from d44 (unknown [92.220.151.66])
	by mailrelay1.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPA
	id f8b2fa32-ead4-11e8-942e-d0431ea8a283;
	Sun, 18 Nov 2018 01:55:06 +0000 (UTC)
Date: Sun, 18 Nov 2018 02:55:06 +0100
From: Arnt Karlsen <[email protected]>
To: [email protected]
Subject: [atop] ..atop installs systemd cron job on non-systemd Devuan
 box...
Message-ID: <20181118025506.2232f7f3@d44>
X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Package: atop
Version: 2.2.6-4
Severity: normal


Hi,

..my first attempt wound up in the partially wrong place, upstream:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913364 because of
https://bugs.devuan.org//cgi/bugreport.cgi?bug=256

Package: atop
Version: 2.2.6-4
Severity: normal

--- Please enter the report below this line. ---

..on installing atop, I found things going at a glacial pace, a 
wee part of global climate change, and this fine new cron job:
root@box:~# cat /etc/cron.d/atop
PATH=/bin:/usr/bin:/sbin:/usr/sbin

# daily restart of atop at midnight
0 0 * * * root if [ -d "/run/systemd/system" ]; then systemctl restart
atop; else /usr/share/atop/atop.daily \& ; fi

..commenting it out, "brought back life."

..we need to keep an eye out for such systemd tricks causing such DOS,
one way is chk which init system is installed, and then install the
correct cron job file.
root@box:~# dpkg -l atop |grep atop |fmt -tu
ii atop 2.2.6-4 amd64 Monitor for system resources and process activity


--- System information. ---
Architecture: 
Kernel:       Linux 4.18.0-0.bpo.1-rt-amd64

Debian Release: 9
  500 stable-updates  deb.devuan.org 
  500 stable-security deb.devuan.org 
  500 stable          deb.devuan.org 
  100 stable-proposed-updates deb.devuan.org 
  100 stable-backports deb.devuan.org 
  100 experimental    deb.devuan.org 

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-=============
libc6                      (>= 2.14) | 2.24-11+deb9u3
libncurses5                   (>= 6) | 6.0+20161126-1+deb9u2
libtinfo5                     (>= 6) | 6.0+20161126-1+deb9u2
zlib1g                  (>= 1:1.1.4) | 1:1.2.8.dfsg-5
init-system-helpers       (>= 1.18~) | 1.48+devuan2.0
lsb-base                 (>= 3.2-14) | 4.1+devuan2


Recommends       (Version) | Installed
==========================-+-===========
cron                       | 3.0pl1-128+deb9u1
 OR cron-daemon            | 


Package's Suggests field is empty.

-- 
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.


Acknowledgement sent to Arnt Karlsen <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#262; Package atop. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Thu, 28 Nov 2024 06:39:01 UTC