mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
ubox: fix up pidcount handling inside log.init
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39022
This commit is contained in:
parent
bc76dec31f
commit
e231f82cc0
@ -4,6 +4,7 @@
|
|||||||
# start after and stop before networking
|
# start after and stop before networking
|
||||||
START=12
|
START=12
|
||||||
STOP=89
|
STOP=89
|
||||||
|
PIDCOUNT=0
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
PROG=/sbin/logread
|
PROG=/sbin/logread
|
||||||
@ -22,6 +23,7 @@ validate_log_section()
|
|||||||
|
|
||||||
start_service_file()
|
start_service_file()
|
||||||
{
|
{
|
||||||
|
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
|
||||||
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
|
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
|
||||||
local log_file log_size
|
local log_file log_size
|
||||||
|
|
||||||
@ -39,6 +41,7 @@ start_service_file()
|
|||||||
|
|
||||||
start_service_remote()
|
start_service_remote()
|
||||||
{
|
{
|
||||||
|
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
|
||||||
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
|
local pid_file="/var/run/logread.${PIDCOUNT}.pid"
|
||||||
local log_ip log_port log_proto log_prefix
|
local log_ip log_port log_proto log_prefix
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user