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
This commit is contained in:
John Crispin
2013-09-17 21:45:30 +00:00
parent 021ff1b2d2
commit d330d9fac4
9 changed files with 109 additions and 103 deletions

View File

@@ -8,7 +8,6 @@ STOP=89
USE_PROCD=1
NAME=logread
PROG=/sbin/logread
PIDCOUNT=1
start_service_file()
{
@@ -24,8 +23,6 @@ start_service_file()
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
procd_close_instance
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
}
start_service_remote()
@@ -43,8 +40,6 @@ start_service_remote()
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
[ "${log_proto}" != "udp" ] || procd_append_param command -u
procd_close_instance
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
}
service_triggers()