diff options
Diffstat (limited to 'applications')
-rwxr-xr-x | applications/luci-app-statistics/root/etc/init.d/luci_statistics | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/applications/luci-app-statistics/root/etc/init.d/luci_statistics b/applications/luci-app-statistics/root/etc/init.d/luci_statistics index ab75b69df0..2dc176c83c 100755 --- a/applications/luci-app-statistics/root/etc/init.d/luci_statistics +++ b/applications/luci-app-statistics/root/etc/init.d/luci_statistics @@ -1,7 +1,14 @@ #!/bin/sh /etc/rc.common + START=79 +USE_PROCD=1 + +service_triggers() +{ + procd_add_reload_trigger "luci_statistics" +} -start() { +start_service() { ### replace shipped config with symlink mkdir -p /var/etc if [ ! -L /etc/collectd.conf ]; then @@ -16,6 +23,10 @@ start() { chmod 1777 /tmp } +reload_service() { + restart "$@" +} + restart() { ### regenerate config / prepare environment start |