ubox: fix up pidcount handling inside log.init

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39022 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
John Crispin 2013-12-09 17:29:44 +00:00
parent b8eefa3213
commit 2f20e13586
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
# start after and stop before networking
START=12
STOP=89
PIDCOUNT=0
USE_PROCD=1
PROG=/sbin/logread
@ -22,6 +23,7 @@ validate_log_section()
start_service_file()
{
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
local log_file log_size
@ -39,6 +41,7 @@ start_service_file()
start_service_remote()
{
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
local log_ip log_port log_proto log_prefix