projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc76dec
)
ubox: fix up pidcount handling inside log.init
author
John Crispin
<john@openwrt.org>
Mon, 9 Dec 2013 17:29:44 +0000
(17:29 +0000)
committer
John Crispin
<john@openwrt.org>
Mon, 9 Dec 2013 17:29:44 +0000
(17:29 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39022
package/system/ubox/files/log.init
patch
|
blob
|
history
diff --git
a/package/system/ubox/files/log.init
b/package/system/ubox/files/log.init
index 1c288a7a08192e0e2274243f3ac72a990aea9320..548f9632bfaded2735da7c30029b37139cdc9a9c 100644
(file)
--- 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