Guest User

Untitled

a guest
Jan 22nd, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. [Unit]
  2. Description=Logstash
  3. Documentation=http://www.elastic.co ; https://aur.archlinux.org/packages/logstash/
  4. Requires=elasticsearch.service
  5.  
  6. [Service]
  7. Environment=LS_HOME=/var/lib/logstash
  8. Environment=LS_HEAP_SIZE="500m"
  9. Environment=LS_CONF_DIR=/etc/logstash/conf.d
  10. Environment=LS_LOG_DIR=/var/log/logstash
  11. Environment=LS_SETTINGS_DIR=/etc/logstash
  12. User=logstash
  13. Group=logstash
  14. ExecStart=/usr/share/logstash/bin/logstash -f $LS_CONF_DIR --path.logs $LS_LOG_DIR --path.data $LS_HOME
  15. StandardOutput=null
  16. StandardError=journal
  17. SuccessExitStatus=143
  18. LimitNOFILE=65535
  19. TimeoutStopSec=20
  20. RemainAfterExit=false
  21.  
  22. # Specifies the maximum number of bytes of memory that may be locked into RAM
  23. # Set to "infinity" if you use the 'bootstrap.mlockall: true' option
  24. # in elasticsearch.yml and 'MAX_LOCKED_MEMORY=unlimited' in /etc/default/elasticsearch
  25. #LimitMEMLOCK=infinity
  26.  
  27. [Install]
  28. WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment