From patchwork Sun Jul 31 20:49:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: jon X-Patchwork-Id: 5794 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Lwtf54rTmz3x1v for ; Sun, 31 Jul 2022 20:49:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Lwtf369RHzLs; Sun, 31 Jul 2022 20:49:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Lwtf34Znyz2ynV; Sun, 31 Jul 2022 20:49:15 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Lwtf133tKz2xQs for ; Sun, 31 Jul 2022 20:49:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Lwtf00lRkzLs; Sun, 31 Jul 2022 20:49:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1659300552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rdDoOMhLlVsFX2HhUpMGZFdShZ3rVlavCHKnFWE8frg=; b=5XU7jYzOzIG55m1TPF0IIfxQZ+A7EkYnFeh29Sy4+Y0e5oi+qnMpRLaiblpNNcV0dXgOI/ D3zuF0cSE4hsPQCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1659300552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rdDoOMhLlVsFX2HhUpMGZFdShZ3rVlavCHKnFWE8frg=; b=UxoZujyf9eNW03Sh9zgioTYX4p0imq2Wv4D8xH6tp5uE3ogd57unYba5f3yq2b31UPA9lv nRNXzwJdn51xvOdg3RE8Z4NNybS5trUPTUhaMZuPQPj+1jIWHrBDAWjtT3+dDiEDMGy7rO AXBeh5K0O4Rs8tZAknS3imQ6s+SSvB2c3AnOUGRG9Gjp9TBq45CB1yosdiUc27sg8i+A+z KMsdu1fIcj0qzUetcg/cAqQnxsNRH3/qxFrzGaznfCVFWy5u8IP+iE+YxdvAKDI7jVfHbJ lgrlrNoCzrFKgkk+U3h4Mn4FajbISbVzD0S45y1R/aTpn7LGAuCvklfqJZZi8A== From: Jon Murphy To: development@lists.ipfire.org Subject: [PATCH v2] update.sh: clean out old collectd statistics Date: Sun, 31 Jul 2022 15:49:00 -0500 Message-Id: <20220731204900.2260811-1-jon.murphy@ipfire.org> In-Reply-To: <20220730022802.3653144-1-jon.murphy@ipfire.org> References: <20220730022802.3653144-1-jon.murphy@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - processes-mysqld - processes-snort - processes-rtorrent - processes-asterisk - processes-java - processes-spamd - entropy Signed-off-by: Jon Murphy Reviewed-by: Peter Müller --- 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