projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: default to udp log protocol to keep backwards compat with busybox
[openwrt/.git]
/
package
/
system
/
procd
/
files
/
log.init
diff --git
a/package/system/procd/files/log.init
b/package/system/procd/files/log.init
index f846a52060c595c870a7b45139d66ac072af7f2b..94c66513cec192d31efaf5bac1faaff779247982 100644
(file)
--- a/
package/system/procd/files/log.init
+++ b/
package/system/procd/files/log.init
@@
-41,7
+41,7
@@
start_service_remote()
procd_open_instance
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
procd_open_instance
procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file"
- [ "${log_proto}"
= "udp" ] &&
procd_append_param command -u
+ [ "${log_proto}"
!= "udp" ] ||
procd_append_param command -u
procd_close_instance
PIDCOUNT="$(( ${PIDCOUNT} + 1))"
procd_close_instance
PIDCOUNT="$(( ${PIDCOUNT} + 1))"