mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
netdata: update to 1.3.0 and use procd init
Update to 1.3.0 Change init.d script to use procd Use release binary instead of git Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
USE_PROCD=1
|
||||
|
||||
start() {
|
||||
service_start /usr/sbin/netdata
|
||||
}
|
||||
APPBINARY=/usr/sbin/netdata
|
||||
CONFIGFILE=/etc/netdata/netdata.conf
|
||||
|
||||
stop() {
|
||||
service_stop /usr/sbin/netdata
|
||||
}
|
||||
start_service() {
|
||||
mkdir -m 0755 -p /var/cache/netdata
|
||||
chown nobody /var/cache/netdata
|
||||
mkdir -m 0755 -p /var/lib/netdata
|
||||
chown nobody /var/lib/netdata
|
||||
mkdir -m 0755 -p /var/log/netdata
|
||||
chown nobody /var/log/netdata
|
||||
procd_open_instance
|
||||
procd_set_param command $APPBINARY -nd -c $CONFIGFILE
|
||||
procd_set_param file $CONFIGFILE
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user