diff options
author | John Crispin <blogic@openwrt.org> | 2013-09-17 21:45:30 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-09-17 21:45:30 +0000 |
commit | d330d9fac452b6b37ded7541c381ca58ef7a4bc8 (patch) | |
tree | fc0c6034daf9bd0276dc91d027e26be26004680b /package/system/rpcd/files/rpcd.init | |
parent | 021ff1b2d2678f1708c9fd86747c229f0ed227c0 (diff) | |
download | master-187ad058-d330d9fac452b6b37ded7541c381ca58ef7a4bc8.tar.gz master-187ad058-d330d9fac452b6b37ded7541c381ca58ef7a4bc8.tar.bz2 master-187ad058-d330d9fac452b6b37ded7541c381ca58ef7a4bc8.zip |
procd: convert various packages to procd style init.d scripts
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38023 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/rpcd/files/rpcd.init')
-rwxr-xr-x | package/system/rpcd/files/rpcd.init | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/package/system/rpcd/files/rpcd.init b/package/system/rpcd/files/rpcd.init index 2132f16fd3..98b633365b 100755 --- 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() { |