mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Add LS_LOG_DIR option
This option allows to set a different directory where the 3 logfiles will be placed.
This commit is contained in:
parent
132d233ce4
commit
d76967c78b
1 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,8 @@ LS_GROUP=logstash
|
||||||
LS_HOME=/var/lib/logstash
|
LS_HOME=/var/lib/logstash
|
||||||
LS_HEAP_SIZE="500m"
|
LS_HEAP_SIZE="500m"
|
||||||
LS_JAVA_OPTS="-Djava.io.tmpdir=${LS_HOME}"
|
LS_JAVA_OPTS="-Djava.io.tmpdir=${LS_HOME}"
|
||||||
LS_LOG_FILE=/var/log/logstash/$name.log
|
LS_LOG_DIR=/var/log/logstash
|
||||||
|
LS_LOG_FILE="${LS_LOG_DIR}/$name.log"
|
||||||
LS_CONF_DIR=/etc/logstash/conf.d
|
LS_CONF_DIR=/etc/logstash/conf.d
|
||||||
LS_OPEN_FILES=16384
|
LS_OPEN_FILES=16384
|
||||||
LS_NICE=19
|
LS_NICE=19
|
||||||
|
@ -54,7 +55,7 @@ start() {
|
||||||
nice ${LS_NICE}
|
nice ${LS_NICE}
|
||||||
ulimit -n ${LS_OPEN_FILES}
|
ulimit -n ${LS_OPEN_FILES}
|
||||||
exec \"$program\" $args
|
exec \"$program\" $args
|
||||||
" > /var/log/logstash/$name.stdout 2> /var/log/logstash/$name.err &
|
" > "${LS_LOG_DIR}/$name.stdout" 2> "${LS_LOG_DIR}/$name.err" &
|
||||||
|
|
||||||
# Generate the pidfile from here. If we instead made the forked process
|
# Generate the pidfile from here. If we instead made the forked process
|
||||||
# generate it there will be a race condition between the pidfile writing
|
# generate it there will be a race condition between the pidfile writing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue