aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-12-09 17:29:44 +0000
committerJohn Crispin <blogic@openwrt.org>2013-12-09 17:29:44 +0000
commit2f20e135866cb2cfb526163f2c0e6194526f5bbb (patch)
treee9dff873ce5ee51254cacf7ddda8b286d47e9329 /package/system
parentb8eefa3213584d72fd21413a067cde86a6c25fc1 (diff)
downloadmaster-187ad058-2f20e135866cb2cfb526163f2c0e6194526f5bbb.tar.gz
master-187ad058-2f20e135866cb2cfb526163f2c0e6194526f5bbb.tar.bz2
master-187ad058-2f20e135866cb2cfb526163f2c0e6194526f5bbb.zip
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
Diffstat (limited to 'package/system')
-rw-r--r--package/system/ubox/files/log.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/ubox/files/log.init b/package/system/ubox/files/log.init
index 1c288a7a08..548f9632bf 100644
--- a/package/system/ubox/files/log.init
+++ b/package/system/ubox/files/log.init
@@ -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