1 #!/bin/sh /etc/rc.common
8 procd_add_reload_trigger "luci_statistics"
12 ### replace shipped config with symlink
14 if [ ! -L /etc/collectd.conf ]; then
15 test -f /etc/collectd.conf && mv /etc/collectd.conf /etc/collectd.conf.bak
16 ln -s /var/etc/collectd.conf /etc/collectd.conf
20 /usr/bin/stat-genconfig > /var/etc/collectd.conf
22 ### workaround broken permissions on /tmp
31 ### regenerate config / prepare environment
35 /etc/init.d/collectd restart