From: John Crispin Date: Mon, 9 Dec 2013 17:29:44 +0000 (+0000) Subject: ubox: fix up pidcount handling inside log.init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e231f82cc06a49f141a8a650aee333c806667244;p=openwrt%2Fsvn-archive%2Fopenwrt.git ubox: fix up pidcount handling inside log.init Signed-off-by: John Crispin SVN-Revision: 39022 --- 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