From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH 3/3] Added new node_exporter 1.2.0 package.
Date: Tue, 27 Jul 2021 10:00:27 +0100 [thread overview]
Message-ID: <27934AAC-DC9D-49CB-BE22-BDA4EB8641AD@ipfire.org> (raw)
In-Reply-To: <8923a9f9-802d-1d97-dcbd-10b6776a76ec@posteo.de>
[-- Attachment #1: Type: text/plain, Size: 2102 bytes --]
Hello Holger,
Yeah, I did remember and I think we should have a generic solution to avoid adding many scripts of this style.
I just sent a patch for testing. Could you please check if this works for you?
https://patchwork.ipfire.org/project/ipfire/patch/20210727085900.2253-1-michael.tremer(a)ipfire.org/
Best,
-Michael
> On 26 Jul 2021, at 20:27, Holger Sunke <holger.sunke(a)posteo.de> wrote:
>
>
>>> +++ b/src/initscripts/packages/node_exporter
>>> @@ -0,0 +1,39 @@
>>> +#!/bin/sh
>>> +########################################################################
>>> +# Begin $rc_base/init.d/
>>> +#
> 99>> +++ b/src/scripts/node_exporter_starter.sh
>>> @@ -0,0 +1,7 @@
>>> +#/bin/bash
>>> +
>>> +# read configurable OPTIONS
>>> +. /etc/node_exporter_options
>>> +
>>> +/usr/bin/node_exporter $OPTIONS >> /var/log/node_exporter.log 2>&1 &
>>> +
>>> --
>>> 2.30.2
>>>
>> What is this for again?
>> -Michael
>
>
> The script above is a workaround for the issue that node_exporter does not have a fork functionality - we wrote about this earlier:
>
>
> > Hello,
>
> >> On 9 Jun 2021, at 07:14, Holger Sunke <holger.sunke(a)posteo.de> wrote:
> >>
> >> Hello Michael,
> >>
> >> the node exporter does not have a daemon mode.
> >> I could alternatively pip the output into a log file:
> >>
> >> loadproc /usr/bin/node_exporter $OPTIONS >> /var/log/node_exporter.log 2>&1 &
>
> > Hmm, so there are two problems here:
>
> >* loadproc shows [ OK ] or [ ERROR ] so that the user knows if the > program was started successfully. That is now being thrown away.
>
> > * Anything useful that node_exporter would print is also being thrown away
>
> > This seems to become a common thing that they remove the fork mode, maybe we need a special version of loadproc() that can handle that.
>
> > Should I add a third patch to do my fixes or adjust patch 1 & 2 each?
>
> > Let’s work on Go first and get that merged and then come back to this one.
>
> > We need to have a solution first and then implement it.
>
> > -Michael
>
next prev parent reply other threads:[~2021-07-27 9:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-24 18:56 [PATCH 0/3] Reworked patches introducing node_exporter on master Holger Sunke
2021-07-24 18:56 ` [PATCH 1/3] Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation Holger Sunke
2021-07-26 14:22 ` Michael Tremer
2021-07-24 18:56 ` [PATCH 3/3] Added new node_exporter 1.2.0 package Holger Sunke
2021-07-26 15:26 ` Michael Tremer
2021-07-26 19:27 ` Holger Sunke
2021-07-27 9:00 ` Michael Tremer [this message]
2021-07-26 14:20 ` [PATCH 0/3] Reworked patches introducing node_exporter on master Michael Tremer
2021-07-26 19:46 [PATCH 1/3] Added x86_64 i586 aarch64 armv5tel support for GO language required for node_exporter compilation Holger Sunke
2021-07-26 19:46 ` [PATCH 3/3] Added new node_exporter 1.2.0 package Holger Sunke
2021-07-28 20:38 Holger Sunke
2021-08-11 14:59 ` Holger Sunke
2021-08-12 9:34 ` Michael Tremer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27934AAC-DC9D-49CB-BE22-BDA4EB8641AD@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox