public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: "Peter Müller" <peter.mueller@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH v2] update.sh: clean out old collectd statistics
Date: Tue, 02 Aug 2022 15:14:48 +0000	[thread overview]
Message-ID: <30f44064-9a4e-55e5-3c4a-d3af1f51d72c@ipfire.org> (raw)
In-Reply-To: <20220731204900.2260811-1-jon.murphy@ipfire.org>

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

Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>

> - processes-mysqld
> - processes-snort
> - processes-rtorrent
> - processes-asterisk
> - processes-java
> - processes-spamd
> - entropy
> 
> Signed-off-by: Jon Murphy <jon.murphy(a)ipfire.org>
> ---
>  config/rootfiles/core/170/update.sh | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/config/rootfiles/core/170/update.sh b/config/rootfiles/core/170/update.sh
> index cbac8572e..aaa2837ea 100644
> --- a/config/rootfiles/core/170/update.sh
> +++ b/config/rootfiles/core/170/update.sh
> @@ -168,7 +168,22 @@ chown nobody:nobody /var/lib/ipblocklist
>  # Update collectd.conf
>  sed -i /etc/collectd.conf \
>  	-e "/LoadPlugin entropy/d"
> -/etc/init.d/collectd restart
> +#/etc/init.d/collectd restart
> +
> +# Stop collectd Sevice
> +/etc/init.d/collectd stop
> +
> +# Cleanup old collectd statistics...
> +rm -rvf /var/log/rrd/collectd/localhost/processes-mysqld \
> +	/var/log/rrd/collectd/localhost/processes-snort \
> +	/var/log/rrd/collectd/localhost/processes-rtorrent \
> +	/var/log/rrd/collectd/localhost/processes-asterisk \
> +	/var/log/rrd/collectd/localhost/processes-java \
> +	/var/log/rrd/collectd/localhost/processes-spamd \
> +	/var/log/rrd/collectd/localhost/entropy
> +
> +# Start collectd
> +/etc/init.d/collectd start
>  
>  # Start services
>  /etc/init.d/rc.d/unbound start

           reply	other threads:[~2022-08-02 15:14 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20220731204900.2260811-1-jon.murphy@ipfire.org>]

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=30f44064-9a4e-55e5-3c4a-d3af1f51d72c@ipfire.org \
    --to=peter.mueller@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