X-Loop: [email protected] Subject: bug#499: Smokeping service unable to stop/restart Reply-To: ShadowM00n <[email protected]>, [email protected] Resent-From: ShadowM00n <[email protected]> Resent-To: [email protected] Resent-CC: [email protected] X-Loop: [email protected] Resent-Date: Mon, 27 Jul 2020 18:03:02 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: report 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: Received: via spool by [email protected] id=B.159587221831217 (code B); Mon, 27 Jul 2020 18:03:02 +0000 Received: (at submit) by bugs.devuan.org; 27 Jul 2020 17:50:18 +0000 Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 27 Jul 2020 17:50:18 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (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 5FA7EF608B8 for <[email protected]>; Mon, 27 Jul 2020 19:46:20 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="KIx6btfe"; dkim-atps=neutral Date: Mon, 27 Jul 2020 12:46:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595871979; bh=/l9h17mopLlsaou9ThJoHJf7d1uMRncnU/SqL+KEzck=; h=Date:From:To:Subject:From; b=KIx6btfe+Rj+VSNJWdgRyazoKyLMcyjYqhGHK96d1CF7pXHfLzlgzxh1PK0i6of2S 2AyeXizettEDAJ5jrEJRF1yxatW+eVQSLX9QqGm48HXGfmX9al6nyWDDG3iAaXR0XU WE2Ypbsf7wElUeaFBcUtalZDsvdXP4XmBP0U9UR1eEf7hdUb0HrfG4ouasIfhvH9eK haS/ps5cWEHtAbFMTGdCUEAY71f6S7w6MvL7Vy5nHKPAVJ9iTR09eE1NPcnCiN9tD/ cHyjE4zxhGO4Vq16yA4Q1PdqqHbO8wdj3A2ecSwuXMw31CzbAut9D12+RzU9N0qj4/ qmMRey2z0QXXg== From: ShadowM00n <[email protected]> To: [email protected] Message-ID: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: smokeping Version: 2.7.3-2 First-time submitter, so please excuse and correct me on any procedural errors on my part. Basically, the current version of smokeping's init service quietly fails to stop smokeping, and then subsequently fails to restart it because the process is still running. My understanding is that between ASCII and Beowulf the service was altered in an attempt to improve security. In ASCII, it checked only that a process with a saved PID existed; in Beowulf it also tries to compare the invocation string to the program string in the process list. While this seems a reasonable idea for most daemons, smokeping seems to be a bit of an exception -- it runs under an interpreter (perl), and as such the stored PID refers to the perl process launching it; naturally, the process string differs from the invocation, being e.g. "/usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config" while being launched as "/usr/sbin/smokeping --config=/etc/smokeping/config". Given this complication, my current personal setup, and my suggestion, is to instead check the owner of the process against the $DAEMON_USER when stopping, as this is configured to be a package-specific user called "smokeping": < start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 > start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 This seems to work well for me, though I would certainly not be opposed to any other working method if this is less than ideal for some reason.
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: ShadowM00n <[email protected]> Subject: bug#499: Acknowledgement (Smokeping service unable to stop/restart) Message-ID: <[email protected]> References: <20200727174615.GA4706@ascii> X-Devuan-PR-Message: ack 499 X-Devuan-PR-Package: smokeping Reply-To: [email protected] Date: Mon, 27 Jul 2020 18:03:04 +0000 Thank you for filing a new bug report with Devuan. You can follow progress on this bug here: 499: https://bugs.devuan.org/cgi/= bugreport.cgi?bug=3D499. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): [email protected] If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems
X-Loop: [email protected] Subject: bug#499: Smokeping service unable to stop/restart Reply-To: Mark Hindley <[email protected]>, [email protected] Resent-From: Mark Hindley <[email protected]> Resent-To: [email protected] Resent-CC: [email protected] X-Loop: [email protected] Resent-Date: Tue, 28 Jul 2020 10:18:01 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: followup 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: References: <20200727174615.GA4706@ascii> <20200727174615.GA4706@ascii> Received: via spool by [email protected] id=B499.159593100614263 (code B ref 499); Tue, 28 Jul 2020 10:18:01 +0000 Received: (at 499) by bugs.devuan.org; 28 Jul 2020 10:10:06 +0000 Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Tue, 28 Jul 2020 10:10:06 +0000 (UTC) Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 8F775F60ACD for <[email protected]>; Tue, 28 Jul 2020 12:04:07 +0200 (CEST) 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 1k0MSr-0002te-Ac; Tue, 28 Jul 2020 11:04:05 +0100 Received: (nullmailer pid 21383 invoked by uid 1000); Tue, 28 Jul 2020 10:04:04 -0000 Date: Tue, 28 Jul 2020 11:04:04 +0100 From: Mark Hindley <[email protected]> To: ShadowM00n <[email protected]>, [email protected] Message-ID: <[email protected]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727174615.GA4706@ascii> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian On Mon, Jul 27, 2020 at 12:46:15PM -0500, ShadowM00n wrote: > Package: smokeping > Version: 2.7.3-2 > > First-time submitter, so please excuse and correct me on any procedural > errors on my part. Thanks for taking the time to report this. > Basically, the current version of smokeping's init service quietly fails > to stop smokeping, and then subsequently fails to restart it because the > process is still running. > > My understanding is that between ASCII and Beowulf the service was > altered in an attempt to improve security. In ASCII, it checked only > that a process with a saved PID existed; in Beowulf it also tries to > compare the invocation string to the program string in the process list. Your analysis seems resonable. In Devuan this package is used directly from Debian without recompilation. In general for packages in that category, the bug reports should go to Debian's BTS to be fixed there as the bug will also be present in Debian. Please could you report to [email protected]? Once you have we can add the forwarded bug number/URL here. Thanks. Mark
Received: (at 499) by bugs.devuan.org; 28 Jul 2020 10:10:06 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Tue, 28 Jul 2020 10:10:06 +0000 (UTC) Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 8F775F60ACD for <[email protected]>; Tue, 28 Jul 2020 12:04:07 +0200 (CEST) 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 1k0MSr-0002te-Ac; Tue, 28 Jul 2020 11:04:05 +0100 Received: (nullmailer pid 21383 invoked by uid 1000); Tue, 28 Jul 2020 10:04:04 -0000 Date: Tue, 28 Jul 2020 11:04:04 +0100 From: Mark Hindley <[email protected]> To: ShadowM00n <[email protected]>, [email protected] Subject: Re: bug#499: Smokeping service unable to stop/restart Message-ID: <[email protected]> References: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200727174615.GA4706@ascii> X-Debbugs-No-Ack: No Thanks User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Control: tags -1 debian On Mon, Jul 27, 2020 at 12:46:15PM -0500, ShadowM00n wrote: > Package: smokeping > Version: 2.7.3-2 > > First-time submitter, so please excuse and correct me on any procedural > errors on my part. Thanks for taking the time to report this. > Basically, the current version of smokeping's init service quietly fails > to stop smokeping, and then subsequently fails to restart it because the > process is still running. > > My understanding is that between ASCII and Beowulf the service was > altered in an attempt to improve security. In ASCII, it checked only > that a process with a saved PID existed; in Beowulf it also tries to > compare the invocation string to the program string in the process list. Your analysis seems resonable. In Devuan this package is used directly from Debian without recompilation. In general for packages in that category, the bug reports should go to Debian's BTS to be fixed there as the bug will also be present in Debian. Please could you report to [email protected]? Once you have we can add the forwarded bug number/URL here. Thanks. Mark
X-Loop: [email protected] Subject: bug#499: Smokeping service unable to stop/restart Reply-To: ShadowM00n <[email protected]>, [email protected] Resent-From: ShadowM00n <[email protected]> Resent-To: [email protected] Resent-CC: [email protected] X-Loop: [email protected] Resent-Date: Tue, 28 Jul 2020 18:03:02 +0000 Resent-Message-ID: <[email protected]> Resent-Sender: [email protected] X-Devuan-PR-Message: followup 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian References: <20200727174615.GA4706@ascii> <[email protected]> <20200727174615.GA4706@ascii> Received: via spool by [email protected] id=B499.159595862318086 (code B ref 499); Tue, 28 Jul 2020 18:03:02 +0000 Received: (at 499) by bugs.devuan.org; 28 Jul 2020 17:50:23 +0000 Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Tue, 28 Jul 2020 17:50:23 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (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 DD292F608A2 for <[email protected]>; Tue, 28 Jul 2020 19:45:08 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="kysiRe4E"; dkim-atps=neutral Date: Tue, 28 Jul 2020 12:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595958307; bh=l04yuCcESOto6XjM9MK/wgaykejwG6s0fkM+kQ2uB7E=; h=Date:From:To:Subject:References:In-Reply-To:From; b=kysiRe4Ew7jtq7s45ES+O004BHBGgrk4p5OLFIkdg96tjfjJ8M8JpfjOSkxX7rD7Y n0wCRhUSHJReonWYeBFKJe9gqyTJmUTnYf/XYkUc7WRZRgJi57fFk5tHBd3LPcruJ0 aoq3Q+UPktZMAFcSzblJoepcZ4viowWNlk67jGRlOyNgaRV5hh0YTe/AaMqaEOx7ZD oS2ZJsDtylRh/Hgqg7WhbEpR9dgQ3CujJtMMjDIvDIbLEGfOSzec0KRk2V1Tes7My3 RULm3a4qCX/HpnTu5h+5N3JEjyxDcIVMtvm9JOTE7gVTUADZET31Qq1L8pKaih+vfq RJpj4/kIKWzqg== From: ShadowM00n <[email protected]> To: Mark Hindley <[email protected]>, [email protected] Message-ID: <20200728174504.GB4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[email protected]> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org On 2020 Jul 28 11:04, Mark Hindley wrote: > In Devuan this package is used directly from Debian without recompilation. In > general for packages in that category, the bug reports should go to Debian's BTS > to be fixed there as the bug will also be present in Debian. > > Please could you report to [email protected]? Once you have we can add the > forwarded bug number/URL here. I was going to do so, but I don't think this actually affects Debian. I wanted to be sure before filing a bug with them, so I set up two VMs, one with stock Buster and one with stock Beowulf, both installed from netinstall images and without a DE. I found that despite the init files being identical (confirmed with md5sum) and the versions of both packages being 2.7.3-2 (confirmed with dpkg -s smokeping | grep Version), the behaviour is not -- the service actually stops correctly on Debian and fails to stop on Beowulf. I took a side-by-side screenshot showcasing all of this for reference. I can include it if it's deemed useful, though I'm not sure it is beyond merely confirming what I just wrote. I am now uncertain how accurate my earlier analysis was given that the Debian system worked without my fix. Any suggestions on what else should be looked at?
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: ShadowM00n <[email protected]> Subject: bug#499: Info received (bug#499: Smokeping service unable to stop/restart) Message-ID: <[email protected]> References: <20200728174504.GB4706@ascii> X-Devuan-PR-Message: ack-info 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian Reply-To: [email protected] Date: Tue, 28 Jul 2020 18:03:04 +0000 Thank you for the additional information you have supplied regarding this bug report. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): [email protected] If you wish to submit further information on this problem, please send it to [email protected]. Please do not send mail to [email protected] unless you wish to report a problem with the Bug-tracking system. --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems
Received: (at control) by bugs.devuan.org; 11 Jan 2023 12:10:32 +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, 11 Jan 2023 12:10:32 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id AnwuGSunvmNfdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:10:19 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 4E8B4DB6; Wed, 11 Jan 2023 12:10:19 +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 E902AB11 for <[email protected]>; Wed, 11 Jan 2023 12:10:18 +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 1pFZvt-0001iI-GT for [email protected]; Wed, 11 Jan 2023 12:10:17 +0000 Received: (nullmailer pid 11830 invoked by uid 1000); Wed, 11 Jan 2023 12:10:17 -0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: merging 499 499 Date: Wed, 11 Jan 2023 12:10:17 +0000 User-Agent: devscripts bts/2.22.2 Message-ID: <[email protected]> merge 499 499 thanks
Received: (at control) by bugs.devuan.org; 11 Jan 2023 12:10:32 +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, 11 Jan 2023 12:10:32 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id MLDbBzWnvmNfdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:10:29 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 0D52DDB6; Wed, 11 Jan 2023 12:10:28 +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 C10F6B11 for <[email protected]>; Wed, 11 Jan 2023 12:10:28 +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 1pFZw3-0001iS-OR for [email protected]; Wed, 11 Jan 2023 12:10:27 +0000 Received: (nullmailer pid 11878 invoked by uid 1000); Wed, 11 Jan 2023 12:10:27 -0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: merging 499 699 Date: Wed, 11 Jan 2023 12:10:27 +0000 User-Agent: devscripts bts/2.22.2 Message-ID: <[email protected]> merge 499 699 thanks
Received: (at control) by bugs.devuan.org; 11 Jan 2023 12:10:32 +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, 11 Jan 2023 12:10:32 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id MLDbBzWnvmNfdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:10:29 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 0D52DDB6; Wed, 11 Jan 2023 12:10:28 +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 C10F6B11 for <[email protected]>; Wed, 11 Jan 2023 12:10:28 +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 1pFZw3-0001iS-OR for [email protected]; Wed, 11 Jan 2023 12:10:27 +0000 Received: (nullmailer pid 11878 invoked by uid 1000); Wed, 11 Jan 2023 12:10:27 -0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: merging 499 699 Date: Wed, 11 Jan 2023 12:10:27 +0000 User-Agent: devscripts bts/2.22.2 Message-ID: <[email protected]> merge 499 699 thanks
Received: (at control) by bugs.devuan.org; 11 Jan 2023 12:13:32 +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, 11 Jan 2023 12:13:32 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id wiwVGMWnvmN/dQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:12:53 +0000 Received: by email.devuan.org (Postfix, from userid 109) id 55DCEDB6; Wed, 11 Jan 2023 12:12:53 +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 03339B11 for <[email protected]>; Wed, 11 Jan 2023 12:12:53 +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 1pFZyO-0001k2-5V for [email protected]; Wed, 11 Jan 2023 12:12:52 +0000 Received: (nullmailer pid 12484 invoked by uid 1000); Wed, 11 Jan 2023 12:12:52 -0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: bug 499 is forwarded to https://bugs.debian.org/989354 Date: Wed, 11 Jan 2023 12:12:52 +0000 User-Agent: devscripts bts/2.22.2 Message-ID: <[email protected]> forwarded 499 https://bugs.debian.org/989354 thanks
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Mark Hindley <[email protected]> Subject: bug#499: marked as done (Smokeping service unable to stop/restart) Message-ID: <[email protected]> References: <[email protected]> <20200727174615.GA4706@ascii> X-Devuan-PR-Message: closed 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian Reply-To: [email protected] Date: Wed, 11 Jan 2023 12:16:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1673439361-28452-0" This is a multi-part message in MIME format... ------------=_1673439361-28452-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Wed, 11 Jan 2023 12:14:13 +0000 with message-id <[email protected]> and subject line Fixed in Debian #989354 has caused the Devuan bug report #499, regarding Smokeping service unable to stop/restart to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673439361-28452-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 27 Jul 2020 17:50:18 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 27 Jul 2020 17:50:18 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (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 5FA7EF608B8 for <[email protected]>; Mon, 27 Jul 2020 19:46:20 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="KIx6btfe"; dkim-atps=neutral Date: Mon, 27 Jul 2020 12:46:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595871979; bh=/l9h17mopLlsaou9ThJoHJf7d1uMRncnU/SqL+KEzck=; h=Date:From:To:Subject:From; b=KIx6btfe+Rj+VSNJWdgRyazoKyLMcyjYqhGHK96d1CF7pXHfLzlgzxh1PK0i6of2S 2AyeXizettEDAJ5jrEJRF1yxatW+eVQSLX9QqGm48HXGfmX9al6nyWDDG3iAaXR0XU WE2Ypbsf7wElUeaFBcUtalZDsvdXP4XmBP0U9UR1eEf7hdUb0HrfG4ouasIfhvH9eK haS/ps5cWEHtAbFMTGdCUEAY71f6S7w6MvL7Vy5nHKPAVJ9iTR09eE1NPcnCiN9tD/ cHyjE4zxhGO4Vq16yA4Q1PdqqHbO8wdj3A2ecSwuXMw31CzbAut9D12+RzU9N0qj4/ qmMRey2z0QXXg== From: ShadowM00n <[email protected]> To: [email protected] Subject: Smokeping service unable to stop/restart Message-ID: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: smokeping Version: 2.7.3-2 First-time submitter, so please excuse and correct me on any procedural errors on my part. Basically, the current version of smokeping's init service quietly fails to stop smokeping, and then subsequently fails to restart it because the process is still running. My understanding is that between ASCII and Beowulf the service was altered in an attempt to improve security. In ASCII, it checked only that a process with a saved PID existed; in Beowulf it also tries to compare the invocation string to the program string in the process list. While this seems a reasonable idea for most daemons, smokeping seems to be a bit of an exception -- it runs under an interpreter (perl), and as such the stored PID refers to the perl process launching it; naturally, the process string differs from the invocation, being e.g. "/usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config" while being launched as "/usr/sbin/smokeping --config=/etc/smokeping/config". Given this complication, my current personal setup, and my suggestion, is to instead check the owner of the process against the $DAEMON_USER when stopping, as this is configured to be a package-specific user called "smokeping": < start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 > start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 This seems to work well for me, though I would certainly not be opposed to any other working method if this is less than ideal for some reason. ------------=_1673439361-28452-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 499-done) by bugs.devuan.org; 11 Jan 2023 12:15:02 +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, 11 Jan 2023 12:15:02 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id oGeWKhmovmOSdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:14:17 +0000 Received: by email.devuan.org (Postfix, from userid 109) id A095ADB6; Wed, 11 Jan 2023 12:14:17 +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 1A088B11 for <[email protected]>; Wed, 11 Jan 2023 12:14:15 +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 1pFZzh-0001kQ-SM for [email protected]; Wed, 11 Jan 2023 12:14:13 +0000 Received: (nullmailer pid 12839 invoked by uid 1000); Wed, 11 Jan 2023 12:14:13 -0000 Date: Wed, 11 Jan 2023 12:14:13 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #989354 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.7.3-4 ------------=_1673439361-28452-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: ShadowM00n <[email protected]> Subject: bug#499 closed by Mark Hindley <[email protected]> (Fixed in Debian #989354) Message-ID: <[email protected]> References: <[email protected]> <20200727174615.GA4706@ascii> X-Devuan-PR-Message: they-closed 499 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian Reply-To: [email protected] Date: Wed, 11 Jan 2023 12:16:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1673439362-28452-1" This is a multi-part message in MIME format... ------------=_1673439362-28452-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the smokeping package: #499: Smokeping service unable to stop/restart It has been closed by Mark Hindley <[email protected]>. Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Mark Hindley <mark@hin= dley.org.uk> by replying to this email. --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673439362-28452-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 499-done) by bugs.devuan.org; 11 Jan 2023 12:15:02 +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, 11 Jan 2023 12:15:02 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id oGeWKhmovmOSdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:14:17 +0000 Received: by email.devuan.org (Postfix, from userid 109) id A095ADB6; Wed, 11 Jan 2023 12:14:17 +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 1A088B11 for <[email protected]>; Wed, 11 Jan 2023 12:14:15 +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 1pFZzh-0001kQ-SM for [email protected]; Wed, 11 Jan 2023 12:14:13 +0000 Received: (nullmailer pid 12839 invoked by uid 1000); Wed, 11 Jan 2023 12:14:13 -0000 Date: Wed, 11 Jan 2023 12:14:13 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #989354 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.7.3-4 ------------=_1673439362-28452-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 27 Jul 2020 17:50:18 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from tupac3.dyne.org [195.169.149.119] by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4) for <debbugs@localhost> (single-drop); Mon, 27 Jul 2020 17:50:18 +0000 (UTC) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (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 5FA7EF608B8 for <[email protected]>; Mon, 27 Jul 2020 19:46:20 +0200 (CEST) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=airmail.cc [email protected] header.b="KIx6btfe"; dkim-atps=neutral Date: Mon, 27 Jul 2020 12:46:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1595871979; bh=/l9h17mopLlsaou9ThJoHJf7d1uMRncnU/SqL+KEzck=; h=Date:From:To:Subject:From; b=KIx6btfe+Rj+VSNJWdgRyazoKyLMcyjYqhGHK96d1CF7pXHfLzlgzxh1PK0i6of2S 2AyeXizettEDAJ5jrEJRF1yxatW+eVQSLX9QqGm48HXGfmX9al6nyWDDG3iAaXR0XU WE2Ypbsf7wElUeaFBcUtalZDsvdXP4XmBP0U9UR1eEf7hdUb0HrfG4ouasIfhvH9eK haS/ps5cWEHtAbFMTGdCUEAY71f6S7w6MvL7Vy5nHKPAVJ9iTR09eE1NPcnCiN9tD/ cHyjE4zxhGO4Vq16yA4Q1PdqqHbO8wdj3A2ecSwuXMw31CzbAut9D12+RzU9N0qj4/ qmMRey2z0QXXg== From: ShadowM00n <[email protected]> To: [email protected] Subject: Smokeping service unable to stop/restart Message-ID: <20200727174615.GA4706@ascii> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,T_SPF_PERMERROR autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Package: smokeping Version: 2.7.3-2 First-time submitter, so please excuse and correct me on any procedural errors on my part. Basically, the current version of smokeping's init service quietly fails to stop smokeping, and then subsequently fails to restart it because the process is still running. My understanding is that between ASCII and Beowulf the service was altered in an attempt to improve security. In ASCII, it checked only that a process with a saved PID existed; in Beowulf it also tries to compare the invocation string to the program string in the process list. While this seems a reasonable idea for most daemons, smokeping seems to be a bit of an exception -- it runs under an interpreter (perl), and as such the stored PID refers to the perl process launching it; naturally, the process string differs from the invocation, being e.g. "/usr/bin/perl /usr/sbin/smokeping --config=/etc/smokeping/config" while being launched as "/usr/sbin/smokeping --config=/etc/smokeping/config". Given this complication, my current personal setup, and my suggestion, is to instead check the owner of the process against the $DAEMON_USER when stopping, as this is configured to be a package-specific user called "smokeping": < start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 > start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 This seems to work well for me, though I would certainly not be opposed to any other working method if this is less than ideal for some reason. ------------=_1673439362-28452-1--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: Mark Hindley <[email protected]> Subject: bug#699: marked as done (smokeping: Init script fails to stop smokeping) Message-ID: <[email protected]> References: <[email protected]> <CAFS+YqwEjqZVk2yvrkioEy6an65hF4pg+s-nzxJUxvav89n8xQ@mail.gmail.com> X-Devuan-PR-Message: closed 699 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian Reply-To: [email protected] Date: Wed, 11 Jan 2023 12:16:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1673439363-28452-2" This is a multi-part message in MIME format... ------------=_1673439363-28452-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Wed, 11 Jan 2023 12:14:13 +0000 with message-id <[email protected]> and subject line Fixed in Debian #989354 has caused the Devuan bug report #499, regarding smokeping: Init script fails to stop smokeping to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673439363-28452-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 8 Aug 2022 20:12:03 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from mail.dyne.org [141.95.83.167] by doc.devuan.org with IMAP (fetchmail-6.4.16) for <debbugs@localhost> (single-drop); Mon, 08 Aug 2022 20:12:03 +0000 (UTC) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.dyne.org (Postfix) with ESMTPS id E277E661873 for <[email protected]>; Mon, 8 Aug 2022 22:11:36 +0200 (CEST) Authentication-Results: mail.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="I2QAe8li"; dkim-atps=neutral Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-3246910dac3so92061177b3.12 for <[email protected]>; Mon, 08 Aug 2022 13:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=YLvMp+O+FCv8oGP294X0cu3qBK+5hVSbnEPCmOXMY70=; b=I2QAe8limJC22/i/nB1f0fJNhSgnrHUdvu7yWOXGWbvTw+k2VqTP4S5FdioM+94Zmf XF+demjXvqY6yuFb4OYhaucWImQjdWTbBflGLGelQs9o9tuzqHj66RR6i64+a2+iD+/C 4AgDS/GwAW5KqJ/vgMT32SD/C6uit2f/ItsOZO3vezdgmJaqk3do/a3LDTTlDVyKbIdf cXemqFqbNMHpfkpXivADXipH/fK0pjuFnvhE84F5a6jt0GKPH80lHtCIHWYeLVYNMuF9 VKOQapUPvWG+mk/ZZZcabapCUsC1xPs+jenrUENnlGalGWqE/plqBs0hXaEKlM/uOUXW YVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=YLvMp+O+FCv8oGP294X0cu3qBK+5hVSbnEPCmOXMY70=; b=RExDuixay58gh9+oA2MPG7zcoMJ3kEcRfwpLPgj9vSdgbocdMNlVBKen5tXMtbZNoR ZiZjRYnYYCh3vM7pLZ8K3dPUv8u451w2wntptHLMsln+OhSpmQqxQpXGAtbNL4nPFC7H PK/4C0vcDcIxmHasQcwY3OwBHHPBEO+9w0PvlYYLHxat6F5W6UhZQ28pfaItS4ciIB5V ZiVqhs4Y5wgSInefaP7jOfewvF/ktS2Xl938mxJYqJE2OdEpbKE9C0wZf86+MlZMVBcO hQWMBtvzMTw/rsYsxLvhDWhjtYoB3/Iiq63ae6jM3urPabHoRkPVQy+sLuOeMXUvSFH6 MM4g== X-Gm-Message-State: ACgBeo0Y4UfmeLface58Bi2quaWfSrdQSG2CbEYcpFDvS5BGLGPUzeUM GnSJnTqEV/mzN/iPNvVGCFsZ3Gut6fYRBa1IznzCDhwLQjI= X-Google-Smtp-Source: AA6agR7ugi85LB/TASusIxexd9y5OiDzxO/7qez4cVSWWzRofX25xeg0pFL+wUcaNblUmp2Q2okZij8wpcihRSUw9g0= X-Received: by 2002:a81:60c2:0:b0:321:4f7f:efef with SMTP id u185-20020a8160c2000000b003214f7fefefmr20727192ywb.492.1659989493735; Mon, 08 Aug 2022 13:11:33 -0700 (PDT) MIME-Version: 1.0 From: TS Lura <[email protected]> Date: Mon, 8 Aug 2022 22:11:27 +0200 Message-ID: <CAFS+YqwEjqZVk2yvrkioEy6an65hF4pg+s-nzxJUxvav89n8xQ@mail.gmail.com> Subject: smokeping: Init script fails to stop smokeping To: [email protected] Content-Type: multipart/alternative; boundary="0000000000001ae5dc05e5c06c21" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org --0000000000001ae5dc05e5c06c21 Content-Type: text/plain; charset="UTF-8" Package: smokeping Version: 2.7.3-3 Severity: normal Dear Maintainer, I wanted to restart my smokeping daemon after a change of my config files. I wanted to run the command /etc/init.d/smokeping stop But the smokeping process did not terminate. I wanted the smokeping process to terminate. I have supplied a patch. If you change the line 131 in /etc/init.d/smokeping from: start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 to start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 The command /etc/init.d/smokeping stop , works. e.g. The smokeping daemon is killed. -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages smokeping depends on: ii adduser 3.118 ii debianutils 4.11.2 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii fping 5.0-1 ii libcgi-fast-perl 1:2.15-1 ii libconfig-grammar-perl 1.13-3 ii libdigest-hmac-perl 1.03+dfsg-2.1 ii libjs-cropper 1.2.2-1.1 ii libjs-prototype 1.7.1-3.1 ii libjs-scriptaculous 1.9.0-2.1 ii librrds-perl 1.7.2-3+b7 ii libsnmp-session-perl 1.14~git20201002.0dedded-1 ii liburi-perl 5.08-1 ii libwww-perl 6.52-1 ii lsb-base 11.1.0 ii perl 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages smokeping recommends: ii apache2 [httpd-cgi] 2.4.54-1~deb11u1 ii bind9-dnsutils [dnsutils] 1:9.16.27-1~deb11u1 pn echoping <none> ii libsocket6-perl 0.29-1+b3 Versions of packages smokeping suggests: ii curl 7.74.0-1.3+deb11u1 pn libauthen-radius-perl <none> ii libio-socket-ssl-perl 2.069-1 pn libnet-dns-perl <none> pn libnet-ldap-perl <none> pn libnet-telnet-perl <none> ii openssh-client 1:8.4p1-5+deb11u1 -- Configuration Files: /etc/init.d/smokeping changed: set -e . /lib/lsb/init-functions DAEMON=/usr/sbin/smokeping NAME=smokeping DESC="latency logger daemon" CONFIG=/etc/smokeping/config PIDFILE=/var/run/smokeping/$NAME.pid DAEMON_USER=smokeping DEFAULTS=/etc/default/smokeping MODE=master DAEMON_ARGS="--config=$CONFIG" unset LC_ALL test -f "$DAEMON" || exit 0 if [ -f "$DEFAULTS" ] then . "$DEFAULTS" fi check_slave() { if [ "$MODE" != "slave" ] then return fi if [ -z "$SHARED_SECRET" ] then log_progress_msg "(missing \$SHARED_SECRET setting)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -r "$SHARED_SECRET" ] then log_progress_msg "(invalid \$SHARED_SECRET setting)" log_end_msg 2 # invalid or excess argument(s) exit 2 fi if [ -z "$MASTER_URL" ] then log_progress_msg "(missing \$MASTER_URL setting)" log_end_msg 6 # program is not configured exit 6 fi DAEMON_ARGS="$DAEMON_ARGS --master-url $MASTER_URL --shared-secret $SHARED_SECRET" if [ -n "$SLAVE_NAME" ] then DAEMON_ARGS="$DAEMON_ARGS --slave-name $SLAVE_NAME" fi DAEMON_ARGS="$DAEMON_ARGS --cache-dir /var/lib/smokeping" DAEMON_ARGS="$DAEMON_ARGS --pid-dir /var/run/smokeping" } check_config () { echo "Checking smokeping configuration file syntax..." # Check whether the configuration file is available if [ ! -r "$CONFIG" ] && [ "$MODE" = "master" ] then log_progress_msg "($CONFIG does not exist)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -d /var/run/smokeping ]; then mkdir /var/run/smokeping chown ${DAEMON_USER}.root /var/run/smokeping chmod 0755 /var/run/smokeping fi ${DAEMON} --config=${CONFIG} --check || exit 6 } case "$1" in start) check_config log_daemon_msg "Starting $DESC" $NAME check_slave set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? set -e if [ "$STATUS" = 0 ] then log_progress_msg "already running" log_end_msg $STATUS exit $STATUS fi set +e start-stop-daemon --start --quiet --exec $DAEMON --oknodo \ --chuid $DAEMON_USER --pidfile $PIDFILE \ -- $DAEMON_ARGS \ | logger -p daemon.notice -t $NAME STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; stop) log_daemon_msg "Shutting down $DESC" $NAME set +e start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; restart) # Restart service (if running) or start service $0 stop $0 start ;; reload|force-reload) check_config log_action_begin_msg "Reloading $DESC configuration" set +e $DAEMON --reload $DAEMON_ARGS | logger -p daemon.notice -t smokeping STATUS=$? set -e if [ "$STATUS" = 0 ] then log_action_end_msg 0 "If the CGI has problems reloading, see README.Debian." else log_action_end_msg $STATUS fi exit $STATUS ;; check) check_config ;; status) log_daemon_msg "Checking $DESC status" $NAME # Use pidofproc to check the status of the service, # pidofproc returns the exit status code of 0 when it the process is # running. # LSB defined exit status codes for status: # 0 program is running or service is OK # 1 program is dead and /var/run pid file exists # 2 program is dead and /var/lock lock file exists # 3 program is not running # 4 program or service status is unknown # 5-199 reserved (5-99 LSB, 100-149 distribution, 150-199 applications) set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? log_progress_msg "(status $STATUS)" log_end_msg 0 set -e exit $STATUS ;; *) echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" exit 1 ;; esac /etc/smokeping/config.d/Probes changed: *** Probes *** + FPing binary = /usr/bin/fping /etc/smokeping/config.d/Targets changed: *** Targets *** probe = FPing menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website of xxx Company. \ Here you will learn all about the latency of our network. + Local menu = Local title = Local Network ++ LocalMachine menu = Local Machine title = This host host = localhost -- no debconf information --0000000000001ae5dc05e5c06c21 Content-Type: text/html; charset="UTF-8" <div dir="ltr"><pre>Package: smokeping Version: 2.7.3-3 Severity: normal Dear Maintainer, I wanted to restart my smokeping daemon after a change of my config files. I wanted to run the command /etc/init.d/smokeping stop But the smokeping process did not terminate. I wanted the smokeping process to terminate. I have supplied a patch. If you change the line 131 in /etc/init.d/smokeping from: start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 to start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 The command /etc/init.d/smokeping stop , works. e.g. The smokeping daemon is killed. -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages smokeping depends on: ii adduser 3.118 ii debianutils 4.11.2 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii fping 5.0-1 ii libcgi-fast-perl 1:2.15-1 ii libconfig-grammar-perl 1.13-3 ii libdigest-hmac-perl 1.03+dfsg-2.1 ii libjs-cropper 1.2.2-1.1 ii libjs-prototype 1.7.1-3.1 ii libjs-scriptaculous 1.9.0-2.1 ii librrds-perl 1.7.2-3+b7 ii libsnmp-session-perl 1.14~git20201002.0dedded-1 ii liburi-perl 5.08-1 ii libwww-perl 6.52-1 ii lsb-base 11.1.0 ii perl 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages smokeping recommends: ii apache2 [httpd-cgi] 2.4.54-1~deb11u1 ii bind9-dnsutils [dnsutils] 1:9.16.27-1~deb11u1 pn echoping <none> ii libsocket6-perl 0.29-1+b3 Versions of packages smokeping suggests: ii curl 7.74.0-1.3+deb11u1 pn libauthen-radius-perl <none> ii libio-socket-ssl-perl 2.069-1 pn libnet-dns-perl <none> pn libnet-ldap-perl <none> pn libnet-telnet-perl <none> ii openssh-client 1:8.4p1-5+deb11u1 -- Configuration Files: /etc/init.d/smokeping changed: set -e . /lib/lsb/init-functions DAEMON=/usr/sbin/smokeping NAME=smokeping DESC="latency logger daemon" CONFIG=/etc/smokeping/config PIDFILE=/var/run/smokeping/$NAME.pid DAEMON_USER=smokeping DEFAULTS=/etc/default/smokeping MODE=master DAEMON_ARGS="--config=$CONFIG" unset LC_ALL test -f "$DAEMON" || exit 0 if [ -f "$DEFAULTS" ] then . "$DEFAULTS" fi check_slave() { if [ "$MODE" != "slave" ] then return fi if [ -z "$SHARED_SECRET" ] then log_progress_msg "(missing \$SHARED_SECRET setting)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -r "$SHARED_SECRET" ] then log_progress_msg "(invalid \$SHARED_SECRET setting)" log_end_msg 2 # invalid or excess argument(s) exit 2 fi if [ -z "$MASTER_URL" ] then log_progress_msg "(missing \$MASTER_URL setting)" log_end_msg 6 # program is not configured exit 6 fi DAEMON_ARGS="$DAEMON_ARGS --master-url $MASTER_URL --shared-secret $SHARED_SECRET" if [ -n "$SLAVE_NAME" ] then DAEMON_ARGS="$DAEMON_ARGS --slave-name $SLAVE_NAME" fi DAEMON_ARGS="$DAEMON_ARGS --cache-dir /var/lib/smokeping" DAEMON_ARGS="$DAEMON_ARGS --pid-dir /var/run/smokeping" } check_config () { echo "Checking smokeping configuration file syntax..." # Check whether the configuration file is available if [ ! -r "$CONFIG" ] && [ "$MODE" = "master" ] then log_progress_msg "($CONFIG does not exist)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -d /var/run/smokeping ]; then mkdir /var/run/smokeping chown ${DAEMON_USER}.root /var/run/smokeping chmod 0755 /var/run/smokeping fi ${DAEMON} --config=${CONFIG} --check || exit 6 } case "$1" in start) check_config log_daemon_msg "Starting $DESC" $NAME check_slave set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? set -e if [ "$STATUS" = 0 ] then log_progress_msg "already running" log_end_msg $STATUS exit $STATUS fi set +e start-stop-daemon --start --quiet --exec $DAEMON --oknodo \ --chuid $DAEMON_USER --pidfile $PIDFILE \ -- $DAEMON_ARGS \ | logger -p daemon.notice -t $NAME STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; stop) log_daemon_msg "Shutting down $DESC" $NAME set +e start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; restart) # Restart service (if running) or start service $0 stop $0 start ;; reload|force-reload) check_config log_action_begin_msg "Reloading $DESC configuration" set +e $DAEMON --reload $DAEMON_ARGS | logger -p daemon.notice -t smokeping STATUS=$? set -e if [ "$STATUS" = 0 ] then log_action_end_msg 0 "If the CGI has problems reloading, see README.Debian." else log_action_end_msg $STATUS fi exit $STATUS ;; check) check_config ;; status) log_daemon_msg "Checking $DESC status" $NAME # Use pidofproc to check the status of the service, # pidofproc returns the exit status code of 0 when it the process is # running. # LSB defined exit status codes for status: # 0 program is running or service is OK # 1 program is dead and /var/run pid file exists # 2 program is dead and /var/lock lock file exists # 3 program is not running # 4 program or service status is unknown # 5-199 reserved (5-99 LSB, 100-149 distribution, 150-199 applications) set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? log_progress_msg "(status $STATUS)" log_end_msg 0 set -e exit $STATUS ;; *) echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" exit 1 ;; esac /etc/smokeping/config.d/Probes changed: *** Probes *** + FPing binary = /usr/bin/fping /etc/smokeping/config.d/Targets changed: *** Targets *** probe = FPing menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website of xxx Company. \ Here you will learn all about the latency of our network. + Local menu = Local title = Local Network ++ LocalMachine menu = Local Machine title = This host host = localhost -- no debconf information </pre></div> --0000000000001ae5dc05e5c06c21-- ------------=_1673439363-28452-2 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 499-done) by bugs.devuan.org; 11 Jan 2023 12:15:02 +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, 11 Jan 2023 12:15:02 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id oGeWKhmovmOSdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:14:17 +0000 Received: by email.devuan.org (Postfix, from userid 109) id A095ADB6; Wed, 11 Jan 2023 12:14:17 +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 1A088B11 for <[email protected]>; Wed, 11 Jan 2023 12:14:15 +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 1pFZzh-0001kQ-SM for [email protected]; Wed, 11 Jan 2023 12:14:13 +0000 Received: (nullmailer pid 12839 invoked by uid 1000); Wed, 11 Jan 2023 12:14:13 -0000 Date: Wed, 11 Jan 2023 12:14:13 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #989354 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.7.3-4 ------------=_1673439363-28452-2--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) X-Loop: [email protected] From: "Devuan bug Tracking System" <[email protected]> To: TS Lura <[email protected]> Subject: bug#699 closed by Mark Hindley <[email protected]> (Fixed in Debian #989354) Message-ID: <[email protected]> References: <[email protected]> <CAFS+YqwEjqZVk2yvrkioEy6an65hF4pg+s-nzxJUxvav89n8xQ@mail.gmail.com> X-Devuan-PR-Message: they-closed 699 X-Devuan-PR-Package: smokeping X-Devuan-PR-Keywords: debian Reply-To: [email protected] Date: Wed, 11 Jan 2023 12:16:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1673439364-28452-3" This is a multi-part message in MIME format... ------------=_1673439364-28452-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the smokeping package: #699: smokeping: Init script fails to stop smokeping It has been closed by Mark Hindley <[email protected]>. Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Mark Hindley <mark@hin= dley.org.uk> by replying to this email. --=20 499: https://bugs.devuan.org/cgi/bugreport.cgi?bug=3D499 Devuan Bug Tracking System Contact [email protected] with problems ------------=_1673439364-28452-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 499-done) by bugs.devuan.org; 11 Jan 2023 12:15:02 +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, 11 Jan 2023 12:15:02 +0000 (UTC) Received: from email.devuan.org by email.devuan.org with LMTP id oGeWKhmovmOSdQAAmSBk0A (envelope-from <[email protected]>) for <[email protected]>; Wed, 11 Jan 2023 12:14:17 +0000 Received: by email.devuan.org (Postfix, from userid 109) id A095ADB6; Wed, 11 Jan 2023 12:14:17 +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 1A088B11 for <[email protected]>; Wed, 11 Jan 2023 12:14:15 +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 1pFZzh-0001kQ-SM for [email protected]; Wed, 11 Jan 2023 12:14:13 +0000 Received: (nullmailer pid 12839 invoked by uid 1000); Wed, 11 Jan 2023 12:14:13 -0000 Date: Wed, 11 Jan 2023 12:14:13 +0000 From: Mark Hindley <[email protected]> To: [email protected] Subject: Fixed in Debian #989354 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.7.3-4 ------------=_1673439364-28452-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.devuan.org; 8 Aug 2022 20:12:03 +0000 Return-Path: <[email protected]> Delivered-To: [email protected] Received: from mail.dyne.org [141.95.83.167] by doc.devuan.org with IMAP (fetchmail-6.4.16) for <debbugs@localhost> (single-drop); Mon, 08 Aug 2022 20:12:03 +0000 (UTC) Received: from mail-yw1-f179.google.com (mail-yw1-f179.google.com [209.85.128.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.dyne.org (Postfix) with ESMTPS id E277E661873 for <[email protected]>; Mon, 8 Aug 2022 22:11:36 +0200 (CEST) Authentication-Results: mail.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com [email protected] header.b="I2QAe8li"; dkim-atps=neutral Received: by mail-yw1-f179.google.com with SMTP id 00721157ae682-3246910dac3so92061177b3.12 for <[email protected]>; Mon, 08 Aug 2022 13:11:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=YLvMp+O+FCv8oGP294X0cu3qBK+5hVSbnEPCmOXMY70=; b=I2QAe8limJC22/i/nB1f0fJNhSgnrHUdvu7yWOXGWbvTw+k2VqTP4S5FdioM+94Zmf XF+demjXvqY6yuFb4OYhaucWImQjdWTbBflGLGelQs9o9tuzqHj66RR6i64+a2+iD+/C 4AgDS/GwAW5KqJ/vgMT32SD/C6uit2f/ItsOZO3vezdgmJaqk3do/a3LDTTlDVyKbIdf cXemqFqbNMHpfkpXivADXipH/fK0pjuFnvhE84F5a6jt0GKPH80lHtCIHWYeLVYNMuF9 VKOQapUPvWG+mk/ZZZcabapCUsC1xPs+jenrUENnlGalGWqE/plqBs0hXaEKlM/uOUXW YVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=YLvMp+O+FCv8oGP294X0cu3qBK+5hVSbnEPCmOXMY70=; b=RExDuixay58gh9+oA2MPG7zcoMJ3kEcRfwpLPgj9vSdgbocdMNlVBKen5tXMtbZNoR ZiZjRYnYYCh3vM7pLZ8K3dPUv8u451w2wntptHLMsln+OhSpmQqxQpXGAtbNL4nPFC7H PK/4C0vcDcIxmHasQcwY3OwBHHPBEO+9w0PvlYYLHxat6F5W6UhZQ28pfaItS4ciIB5V ZiVqhs4Y5wgSInefaP7jOfewvF/ktS2Xl938mxJYqJE2OdEpbKE9C0wZf86+MlZMVBcO hQWMBtvzMTw/rsYsxLvhDWhjtYoB3/Iiq63ae6jM3urPabHoRkPVQy+sLuOeMXUvSFH6 MM4g== X-Gm-Message-State: ACgBeo0Y4UfmeLface58Bi2quaWfSrdQSG2CbEYcpFDvS5BGLGPUzeUM GnSJnTqEV/mzN/iPNvVGCFsZ3Gut6fYRBa1IznzCDhwLQjI= X-Google-Smtp-Source: AA6agR7ugi85LB/TASusIxexd9y5OiDzxO/7qez4cVSWWzRofX25xeg0pFL+wUcaNblUmp2Q2okZij8wpcihRSUw9g0= X-Received: by 2002:a81:60c2:0:b0:321:4f7f:efef with SMTP id u185-20020a8160c2000000b003214f7fefefmr20727192ywb.492.1659989493735; Mon, 08 Aug 2022 13:11:33 -0700 (PDT) MIME-Version: 1.0 From: TS Lura <[email protected]> Date: Mon, 8 Aug 2022 22:11:27 +0200 Message-ID: <CAFS+YqwEjqZVk2yvrkioEy6an65hF4pg+s-nzxJUxvav89n8xQ@mail.gmail.com> Subject: smokeping: Init script fails to stop smokeping To: [email protected] Content-Type: multipart/alternative; boundary="0000000000001ae5dc05e5c06c21" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dyne.org --0000000000001ae5dc05e5c06c21 Content-Type: text/plain; charset="UTF-8" Package: smokeping Version: 2.7.3-3 Severity: normal Dear Maintainer, I wanted to restart my smokeping daemon after a change of my config files. I wanted to run the command /etc/init.d/smokeping stop But the smokeping process did not terminate. I wanted the smokeping process to terminate. I have supplied a patch. If you change the line 131 in /etc/init.d/smokeping from: start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 to start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 The command /etc/init.d/smokeping stop , works. e.g. The smokeping daemon is killed. -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages smokeping depends on: ii adduser 3.118 ii debianutils 4.11.2 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii fping 5.0-1 ii libcgi-fast-perl 1:2.15-1 ii libconfig-grammar-perl 1.13-3 ii libdigest-hmac-perl 1.03+dfsg-2.1 ii libjs-cropper 1.2.2-1.1 ii libjs-prototype 1.7.1-3.1 ii libjs-scriptaculous 1.9.0-2.1 ii librrds-perl 1.7.2-3+b7 ii libsnmp-session-perl 1.14~git20201002.0dedded-1 ii liburi-perl 5.08-1 ii libwww-perl 6.52-1 ii lsb-base 11.1.0 ii perl 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages smokeping recommends: ii apache2 [httpd-cgi] 2.4.54-1~deb11u1 ii bind9-dnsutils [dnsutils] 1:9.16.27-1~deb11u1 pn echoping <none> ii libsocket6-perl 0.29-1+b3 Versions of packages smokeping suggests: ii curl 7.74.0-1.3+deb11u1 pn libauthen-radius-perl <none> ii libio-socket-ssl-perl 2.069-1 pn libnet-dns-perl <none> pn libnet-ldap-perl <none> pn libnet-telnet-perl <none> ii openssh-client 1:8.4p1-5+deb11u1 -- Configuration Files: /etc/init.d/smokeping changed: set -e . /lib/lsb/init-functions DAEMON=/usr/sbin/smokeping NAME=smokeping DESC="latency logger daemon" CONFIG=/etc/smokeping/config PIDFILE=/var/run/smokeping/$NAME.pid DAEMON_USER=smokeping DEFAULTS=/etc/default/smokeping MODE=master DAEMON_ARGS="--config=$CONFIG" unset LC_ALL test -f "$DAEMON" || exit 0 if [ -f "$DEFAULTS" ] then . "$DEFAULTS" fi check_slave() { if [ "$MODE" != "slave" ] then return fi if [ -z "$SHARED_SECRET" ] then log_progress_msg "(missing \$SHARED_SECRET setting)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -r "$SHARED_SECRET" ] then log_progress_msg "(invalid \$SHARED_SECRET setting)" log_end_msg 2 # invalid or excess argument(s) exit 2 fi if [ -z "$MASTER_URL" ] then log_progress_msg "(missing \$MASTER_URL setting)" log_end_msg 6 # program is not configured exit 6 fi DAEMON_ARGS="$DAEMON_ARGS --master-url $MASTER_URL --shared-secret $SHARED_SECRET" if [ -n "$SLAVE_NAME" ] then DAEMON_ARGS="$DAEMON_ARGS --slave-name $SLAVE_NAME" fi DAEMON_ARGS="$DAEMON_ARGS --cache-dir /var/lib/smokeping" DAEMON_ARGS="$DAEMON_ARGS --pid-dir /var/run/smokeping" } check_config () { echo "Checking smokeping configuration file syntax..." # Check whether the configuration file is available if [ ! -r "$CONFIG" ] && [ "$MODE" = "master" ] then log_progress_msg "($CONFIG does not exist)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -d /var/run/smokeping ]; then mkdir /var/run/smokeping chown ${DAEMON_USER}.root /var/run/smokeping chmod 0755 /var/run/smokeping fi ${DAEMON} --config=${CONFIG} --check || exit 6 } case "$1" in start) check_config log_daemon_msg "Starting $DESC" $NAME check_slave set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? set -e if [ "$STATUS" = 0 ] then log_progress_msg "already running" log_end_msg $STATUS exit $STATUS fi set +e start-stop-daemon --start --quiet --exec $DAEMON --oknodo \ --chuid $DAEMON_USER --pidfile $PIDFILE \ -- $DAEMON_ARGS \ | logger -p daemon.notice -t $NAME STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; stop) log_daemon_msg "Shutting down $DESC" $NAME set +e start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; restart) # Restart service (if running) or start service $0 stop $0 start ;; reload|force-reload) check_config log_action_begin_msg "Reloading $DESC configuration" set +e $DAEMON --reload $DAEMON_ARGS | logger -p daemon.notice -t smokeping STATUS=$? set -e if [ "$STATUS" = 0 ] then log_action_end_msg 0 "If the CGI has problems reloading, see README.Debian." else log_action_end_msg $STATUS fi exit $STATUS ;; check) check_config ;; status) log_daemon_msg "Checking $DESC status" $NAME # Use pidofproc to check the status of the service, # pidofproc returns the exit status code of 0 when it the process is # running. # LSB defined exit status codes for status: # 0 program is running or service is OK # 1 program is dead and /var/run pid file exists # 2 program is dead and /var/lock lock file exists # 3 program is not running # 4 program or service status is unknown # 5-199 reserved (5-99 LSB, 100-149 distribution, 150-199 applications) set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? log_progress_msg "(status $STATUS)" log_end_msg 0 set -e exit $STATUS ;; *) echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" exit 1 ;; esac /etc/smokeping/config.d/Probes changed: *** Probes *** + FPing binary = /usr/bin/fping /etc/smokeping/config.d/Targets changed: *** Targets *** probe = FPing menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website of xxx Company. \ Here you will learn all about the latency of our network. + Local menu = Local title = Local Network ++ LocalMachine menu = Local Machine title = This host host = localhost -- no debconf information --0000000000001ae5dc05e5c06c21 Content-Type: text/html; charset="UTF-8" <div dir="ltr"><pre>Package: smokeping Version: 2.7.3-3 Severity: normal Dear Maintainer, I wanted to restart my smokeping daemon after a change of my config files. I wanted to run the command /etc/init.d/smokeping stop But the smokeping process did not terminate. I wanted the smokeping process to terminate. I have supplied a patch. If you change the line 131 in /etc/init.d/smokeping from: start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --exec $DAEMON --signal 15 to start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 The command /etc/init.d/smokeping stop , works. e.g. The smokeping daemon is killed. -- System Information: Distributor ID: Devuan Description: Devuan GNU/Linux 4 (chimaera) Release: 4 Codename: chimaera Architecture: x86_64 Kernel: Linux 5.10.0-16-amd64 (SMP w/4 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages smokeping depends on: ii adduser 3.118 ii debianutils 4.11.2 ii exim4-daemon-light [mail-transport-agent] 4.94.2-7 ii fping 5.0-1 ii libcgi-fast-perl 1:2.15-1 ii libconfig-grammar-perl 1.13-3 ii libdigest-hmac-perl 1.03+dfsg-2.1 ii libjs-cropper 1.2.2-1.1 ii libjs-prototype 1.7.1-3.1 ii libjs-scriptaculous 1.9.0-2.1 ii librrds-perl 1.7.2-3+b7 ii libsnmp-session-perl 1.14~git20201002.0dedded-1 ii liburi-perl 5.08-1 ii libwww-perl 6.52-1 ii lsb-base 11.1.0 ii perl 5.32.1-4+deb11u2 ii ucf 3.0043 Versions of packages smokeping recommends: ii apache2 [httpd-cgi] 2.4.54-1~deb11u1 ii bind9-dnsutils [dnsutils] 1:9.16.27-1~deb11u1 pn echoping <none> ii libsocket6-perl 0.29-1+b3 Versions of packages smokeping suggests: ii curl 7.74.0-1.3+deb11u1 pn libauthen-radius-perl <none> ii libio-socket-ssl-perl 2.069-1 pn libnet-dns-perl <none> pn libnet-ldap-perl <none> pn libnet-telnet-perl <none> ii openssh-client 1:8.4p1-5+deb11u1 -- Configuration Files: /etc/init.d/smokeping changed: set -e . /lib/lsb/init-functions DAEMON=/usr/sbin/smokeping NAME=smokeping DESC="latency logger daemon" CONFIG=/etc/smokeping/config PIDFILE=/var/run/smokeping/$NAME.pid DAEMON_USER=smokeping DEFAULTS=/etc/default/smokeping MODE=master DAEMON_ARGS="--config=$CONFIG" unset LC_ALL test -f "$DAEMON" || exit 0 if [ -f "$DEFAULTS" ] then . "$DEFAULTS" fi check_slave() { if [ "$MODE" != "slave" ] then return fi if [ -z "$SHARED_SECRET" ] then log_progress_msg "(missing \$SHARED_SECRET setting)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -r "$SHARED_SECRET" ] then log_progress_msg "(invalid \$SHARED_SECRET setting)" log_end_msg 2 # invalid or excess argument(s) exit 2 fi if [ -z "$MASTER_URL" ] then log_progress_msg "(missing \$MASTER_URL setting)" log_end_msg 6 # program is not configured exit 6 fi DAEMON_ARGS="$DAEMON_ARGS --master-url $MASTER_URL --shared-secret $SHARED_SECRET" if [ -n "$SLAVE_NAME" ] then DAEMON_ARGS="$DAEMON_ARGS --slave-name $SLAVE_NAME" fi DAEMON_ARGS="$DAEMON_ARGS --cache-dir /var/lib/smokeping" DAEMON_ARGS="$DAEMON_ARGS --pid-dir /var/run/smokeping" } check_config () { echo "Checking smokeping configuration file syntax..." # Check whether the configuration file is available if [ ! -r "$CONFIG" ] && [ "$MODE" = "master" ] then log_progress_msg "($CONFIG does not exist)" log_end_msg 6 # program is not configured exit 6 fi if [ ! -d /var/run/smokeping ]; then mkdir /var/run/smokeping chown ${DAEMON_USER}.root /var/run/smokeping chmod 0755 /var/run/smokeping fi ${DAEMON} --config=${CONFIG} --check || exit 6 } case "$1" in start) check_config log_daemon_msg "Starting $DESC" $NAME check_slave set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? set -e if [ "$STATUS" = 0 ] then log_progress_msg "already running" log_end_msg $STATUS exit $STATUS fi set +e start-stop-daemon --start --quiet --exec $DAEMON --oknodo \ --chuid $DAEMON_USER --pidfile $PIDFILE \ -- $DAEMON_ARGS \ | logger -p daemon.notice -t $NAME STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; stop) log_daemon_msg "Shutting down $DESC" $NAME set +e start-stop-daemon --oknodo --stop --retry 3 --quiet --pidfile $PIDFILE --user $DAEMON_USER --signal 15 STATUS=$? set -e log_end_msg $STATUS exit $STATUS ;; restart) # Restart service (if running) or start service $0 stop $0 start ;; reload|force-reload) check_config log_action_begin_msg "Reloading $DESC configuration" set +e $DAEMON --reload $DAEMON_ARGS | logger -p daemon.notice -t smokeping STATUS=$? set -e if [ "$STATUS" = 0 ] then log_action_end_msg 0 "If the CGI has problems reloading, see README.Debian." else log_action_end_msg $STATUS fi exit $STATUS ;; check) check_config ;; status) log_daemon_msg "Checking $DESC status" $NAME # Use pidofproc to check the status of the service, # pidofproc returns the exit status code of 0 when it the process is # running. # LSB defined exit status codes for status: # 0 program is running or service is OK # 1 program is dead and /var/run pid file exists # 2 program is dead and /var/lock lock file exists # 3 program is not running # 4 program or service status is unknown # 5-199 reserved (5-99 LSB, 100-149 distribution, 150-199 applications) set +e pidofproc -p "$PIDFILE" "$DAEMON" > /dev/null STATUS=$? log_progress_msg "(status $STATUS)" log_end_msg 0 set -e exit $STATUS ;; *) echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" exit 1 ;; esac /etc/smokeping/config.d/Probes changed: *** Probes *** + FPing binary = /usr/bin/fping /etc/smokeping/config.d/Targets changed: *** Targets *** probe = FPing menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website of xxx Company. \ Here you will learn all about the latency of our network. + Local menu = Local title = Local Network ++ LocalMachine menu = Local Machine title = This host host = localhost -- no debconf information </pre></div> --0000000000001ae5dc05e5c06c21-- ------------=_1673439364-28452-3--
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:
Sat, 18 Jan 2025 08:39:01 UTC