mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
logd: create log directory for log_file
If log_file is specified, make sure its directory exists. Signed-off-by: Karl Palsson <karlp@etactica.com> Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
This commit is contained in:
parent
0c59c9c9db
commit
c24c8bfd0a
@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ubox
|
PKG_NAME:=ubox
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/ubox.git
|
||||||
|
@ -55,6 +55,8 @@ start_service_file()
|
|||||||
}
|
}
|
||||||
[ -z "${log_file}" ] && return
|
[ -z "${log_file}" ] && return
|
||||||
|
|
||||||
|
mkdir -p "$(dirname "${log_file}")"
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
|
procd_set_param command "$PROG" -f -F "$log_file" -p "$pid_file"
|
||||||
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
|
[ -n "${log_size}" ] && procd_append_param command -S "$log_size"
|
||||||
|
Loading…
Reference in New Issue
Block a user