projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
procd: convert various packages to procd style init.d scripts
[openwrt.git]
/
package
/
system
/
rpcd
/
files
/
rpcd.init
diff --git
a/package/system/rpcd/files/rpcd.init
b/package/system/rpcd/files/rpcd.init
index
2132f16
..
98b6333
100755
(executable)
--- a/
package/system/rpcd/files/rpcd.init
+++ b/
package/system/rpcd/files/rpcd.init
@@
-2,11
+2,14
@@
START=12
-SERVICE_DAEMONIZE=1
-SERVICE_WRITE_PID=1
+USE_PROCD=1
+NAME=rpcd
+PROG=/sbin/rpcd
-start() {
- service_start /sbin/rpcd
+start_service() {
+ procd_open_instance
+ procd_set_param command "$PROG"
+ procd_close_instance
}
stop() {