mirror of
https://github.com/elastic/logstash.git
synced 2025-04-20 04:37:18 -04:00
Update after-install scripts Use /usr/lib/logstash instead of /opt/logstash More revisions. Using `/usr/share/logstash` instead of `/usr/lib/logstash` Track these new files More work in progress. Proper arg parsing obtained WIP: Use jvm.options like ES Remove facter dependency Due to an update from @jordansissel on pleaserun, facter is no longer necessary Revert Gemfile to proper version Latest work in progress. I added a simple test to logstash.lib.sh to catch empty strings in java options. Added `startup.options`, and touched up `jvm.options` Edited the package scripts to make things play nice with new paths. Tweaked `system-install` to allow users to provide their own `startup.options` file. Patch up merge failure Changes to work with the new logstash.yml Add fpm dependency (build fails without it) Fix missing gems in Gemfile Don't know how these got lost Use /etc/logstash for configuration in packages Update the instructions/documentation for... ...startup.options Merging proposed changes Remove mustache and clamp They're covered by pleaserun anyway Prune config dir from /usr/share/logstash... ...but only when using RPM/DEB packages Fixes #5341
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
################################################################################
|
|
# These settings are ONLY used by $LS_HOME/bin/system-install to create a custom
|
|
# startup script for Logstash. It should automagically use the init system
|
|
# (systemd, upstart, sysv, etc.) that your Linux distribution uses.
|
|
#
|
|
# After changing anything here, you need to re-run $LS_HOME/bin/system-install
|
|
# as root to push the changes to the init script.
|
|
################################################################################
|
|
|
|
# Override Java location
|
|
JAVACMD=/usr/bin/java
|
|
|
|
# Set a home directory
|
|
LS_HOME=/usr/share/logstash
|
|
|
|
# logstash settings directory, the path which contains logstash.yml
|
|
LS_SETTINGS_DIR=/etc/logstash
|
|
|
|
# Arguments to pass to logstash
|
|
LS_OPTS="--path.settings ${LS_SETTINGS_DIR}"
|
|
|
|
# Arguments to pass to java
|
|
LS_JAVA_OPTS=""
|
|
|
|
# pidfiles aren't used the same way for upstart and systemd; this is for sysv users.
|
|
LS_PIDFILE=/var/run/logstash.pid
|
|
|
|
# user and group id to be invoked as
|
|
LS_USER=logstash
|
|
LS_GROUP=logstash
|
|
|
|
# Enable GC logging by uncommenting the appropriate lines in the GC logging
|
|
# section in jvm.options
|
|
LS_GC_LOG_FILE=/var/log/logstash/gc.log
|
|
|
|
# Open file limit
|
|
LS_OPEN_FILES=16384
|
|
|
|
# Nice level
|
|
LS_NICE=19
|
|
|
|
# Change these to have the init script named and described differently
|
|
# This is useful when running multiple instances of Logstash on the same
|
|
# physical box or vm
|
|
SERVICE_NAME="logstash"
|
|
SERVICE_DESCRIPTION="logstash"
|
|
|
|
# If you need to run a command or script before launching Logstash, put it
|
|
# between the lines beginning with `read` and `EOM`, and uncomment those lines.
|
|
###
|
|
## read -r -d '' PRESTART << EOM
|
|
## EOM
|