startup.options 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ################################################################################
  2. # These settings are ONLY used by $LS_HOME/bin/system-install to create a custom
  3. # startup script for Logstash and is not used by Logstash itself. It should
  4. # automagically use the init system (systemd, upstart, sysv, etc.) that your
  5. # Linux distribution uses.
  6. #
  7. # After changing anything here, you need to re-run $LS_HOME/bin/system-install
  8. # as root to push the changes to the init script.
  9. ################################################################################
  10. # Override Java location
  11. #JAVACMD=/usr/bin/java
  12. # Set a home directory
  13. LS_HOME=/usr/share/logstash
  14. # logstash settings directory, the path which contains logstash.yml
  15. LS_SETTINGS_DIR="${LS_HOME}/config"
  16. # Arguments to pass to logstash
  17. LS_OPTS="--path.settings ${LS_SETTINGS_DIR}"
  18. # Arguments to pass to java
  19. LS_JAVA_OPTS=""
  20. # pidfiles aren't used the same way for upstart and systemd; this is for sysv users.
  21. LS_PIDFILE=/var/run/logstash.pid
  22. # user and group id to be invoked as
  23. LS_USER=logstash
  24. LS_GROUP=logstash
  25. # Enable GC logging by uncommenting the appropriate lines in the GC logging
  26. # section in jvm.options
  27. LS_GC_LOG_FILE=/var/log/logstash/gc.log
  28. # Open file limit
  29. LS_OPEN_FILES=16384
  30. # Nice level
  31. LS_NICE=19
  32. # Change these to have the init script named and described differently
  33. # This is useful when running multiple instances of Logstash on the same
  34. # physical box or vm
  35. SERVICE_NAME="logstash"
  36. SERVICE_DESCRIPTION="logstash"
  37. # If you need to run a command or script before launching Logstash, put it
  38. # between the lines beginning with `read` and `EOM`, and uncomment those lines.
  39. ###
  40. ## read -r -d '' PRESTART << EOM
  41. ## EOM