From mboxrd@z Thu Jan  1 00:00:00 1970
From: Peter =?utf-8?q?M=C3=BCller?= <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
Message-ID: <30f44064-9a4e-55e5-3c4a-d3af1f51d72c@ipfire.org>
In-Reply-To: <20220731204900.2260811-1-jon.murphy@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1733099529588843661=="
List-Id: <development.lists.ipfire.org>

--===============1733099529588843661==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Reviewed-by: Peter M=C3=BCller <peter.mueller(a)ipfire.org>

> - processes-mysqld
> - processes-snort
> - processes-rtorrent
> - processes-asterisk
> - processes-java
> - processes-spamd
> - entropy
>=20
> Signed-off-by: Jon Murphy <jon.murphy(a)ipfire.org>
> ---
>  config/rootfiles/core/170/update.sh | 17 ++++++++++++++++-
>  1 file changed, 16 insertions(+), 1 deletion(-)
>=20
> diff --git a/config/rootfiles/core/170/update.sh b/config/rootfiles/core/17=
0/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
> =20
>  # Start services
>  /etc/init.d/rc.d/unbound start

--===============1733099529588843661==--