@stopdaemon collectd sbin/collectd @unexec if cmp -s %D/etc/collectd.conf.sample %D/etc/collectd.conf; then rm -f %D/etc/collectd.conf; fi etc/collectd.conf.sample @exec if [ ! -f %B/collectd.conf ] ; then cp -p %B/%f %B/collectd.conf; fi %%CGI%%%%WWWDIR%%/collection.cgi %%CGI%%@unexec if cmp -s %B/collection.conf.sample %B/collection.conf; then rm -f %B/collection.conf; fi %%CGI%%%%WWWDIR%%/collection.conf.sample %%CGI%%@exec if [ ! -f %B/collection.conf ] ; then cp -p %B/%f %B/collection.conf; fi %%CGI%%@dirrmtry %%WWWDIR%% bin/collectd-nagios lib/collectd/types.db %%APACHE%%lib/collectd/apache.la %%APACHE%%lib/collectd/apache.so %%APCUPS%%lib/collectd/apcups.la %%APCUPS%%lib/collectd/apcups.so lib/collectd/cpu.la lib/collectd/cpu.so lib/collectd/csv.la lib/collectd/csv.so lib/collectd/df.la lib/collectd/df.so lib/collectd/dns.la lib/collectd/dns.so lib/collectd/email.la lib/collectd/email.so lib/collectd/exec.la lib/collectd/exec.so %%INTERFACE%%lib/collectd/interface.la %%INTERFACE%%lib/collectd/interface.so lib/collectd/load.la lib/collectd/load.so lib/collectd/logfile.la lib/collectd/logfile.so %%MBMON%%lib/collectd/mbmon.la %%MBMON%%lib/collectd/mbmon.so lib/collectd/memory.la lib/collectd/memory.so %%MYSQL%%lib/collectd/mysql.la %%MYSQL%%lib/collectd/mysql.so lib/collectd/network.la lib/collectd/network.so lib/collectd/ntpd.la lib/collectd/ntpd.so %%PING%%lib/collectd/ping.la %%PING%%lib/collectd/ping.so %%RRD%%lib/collectd/rrdtool.la %%RRD%%lib/collectd/rrdtool.so %%SNMP%%lib/collectd/snmp.la %%SNMP%%lib/collectd/snmp.so lib/collectd/swap.la lib/collectd/swap.so lib/collectd/syslog.la lib/collectd/syslog.so lib/collectd/unixsock.la lib/collectd/unixsock.so %%XMMS%%lib/collectd/xmms.la %%XMMS%%lib/collectd/xmms.so @dirrm lib/collectd @exec mkdir -p /var/db/collectd @unexec rmdir /var/db/collectd 2>/dev/null || true