From ba5886e4565a94c1c5d67e90417427d07eb0869a Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 2 May 2007 08:12:09 +0200 Subject: [PATCH] collectd.postinst: Remove swap-reserved.rrd after migration. Reserved swap is only available on Solaris. --- debian/collectd.postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debian/collectd.postinst b/debian/collectd.postinst index 122068a..2f4d55c 100755 --- a/debian/collectd.postinst +++ b/debian/collectd.postinst @@ -36,6 +36,9 @@ case "$1" in mkdir /var/lib/collectd/ mv $tmpdir /var/lib/collectd/rrd chmod 0755 /var/lib/collectd/rrd + + # this is only available on Solaris using libkstat + rm -f /var/lib/collectd/rrd/$hostname/swap/swap-reserved.rrd fi ;; -- 2.30.2