Code

collectd.postinst: Remove swap-reserved.rrd after migration.
authorSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 06:12:09 +0000 (08:12 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 2 May 2007 06:12:09 +0000 (08:12 +0200)
Reserved swap is only available on Solaris.

debian/collectd.postinst

index 122068a943a960762b08c5f63c6590db63d0291a..2f4d55cc076a10d6ed115ccc12f06d46e4d9aab0 100755 (executable)
@@ -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
     ;;