Changeset 37257


Ignore:
Timestamp:
2013-07-11T23:16:25+02:00 (5 years ago)
Author:
blogic
Message:

procd: make the log port default to 514 if none is specified

Signed-off-by: John Crispin <blogic@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/system/procd/files/log.init

    r37249 r37257  
    3838        config_get log_proto $1 log_proto 
    3939 
    40         [ -z "${log_port}" -o -z "${log_ip}" ] && return 
     40        [ -z "${log_ip}" ] && return 
    4141 
    4242        procd_open_instance 
    43         procd_set_param command "$PROG" -f -r "$log_ip" "$log_port" -p "$pid_file" 
     43        procd_set_param command "$PROG" -f -r "$log_ip" "${log_port:-514}" -p "$pid_file" 
    4444        [ "${log_proto}" = "udp" ] && procd_append_param command -u 
    4545        procd_close_instance 
Note: See TracChangeset for help on using the changeset viewer.