public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Holger Sunke <holger.sunke@posteo.de>
To: development@lists.ipfire.org
Subject: Re: [PATCH 3/3] Added new node_exporter 1.2.0 package.
Date: Mon, 26 Jul 2021 19:27:15 +0000	[thread overview]
Message-ID: <8923a9f9-802d-1d97-dcbd-10b6776a76ec@posteo.de> (raw)
In-Reply-To: <B0BF97B7-392E-4D31-A05B-8A55D97BB96B@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1576 bytes --]


>> +++ 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


  reply	other threads:[~2021-07-26 19:27 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 [this message]
2021-07-27  9:00       ` Michael Tremer
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=8923a9f9-802d-1d97-dcbd-10b6776a76ec@posteo.de \
    --to=holger.sunke@posteo.de \
    --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