Browse Source

collectd: use procd

Change collectd to use procd for startup.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
lilik-openwrt-22.03
Hannu Nyman 9 years ago
parent
commit
a62ff02b8d
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      utils/collectd/files/collectd.init

+ 6
- 8
utils/collectd/files/collectd.init View File

@ -1,15 +1,13 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
# Copyright (C) 2006-2016 OpenWrt.org
START=80 START=80
SERVICE_USE_PID=1
USE_PROCD=1
start() {
mkdir -m 0755 -p /var/lib/collectd
service_start /usr/sbin/collectd
start_service() {
procd_open_instance
procd_set_param command /usr/sbin/collectd -f
procd_close_instance
} }
stop() {
service_stop /usr/sbin/collectd
}

Loading…
Cancel
Save