This website works better with JavaScript.
Home
Help
Sign In
LILiK
/
openwrt-packages-dist
Watch
5
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
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
11d3b98950
commit
a62ff02b8d
1 changed files
with
6 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
# Copyright (C) 2006-201
1
OpenWrt.org
# Copyright (C) 2006-201
6
OpenWrt.org
START=80
SERVICE_USE_PI
D=1
USE_PROC
D=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
}
Write
Preview
Loading…
Cancel
Save