Running CentOS 6.8, installing 5.0.0 RC1 through yum following the instructions in the docs (https://www.elastic.co/guide/en/logstash/5.0/installing-logstash.html) and the init.d scripts are missing for starting/stopping logstash.
Using the following repo config, had to turn gpgcheck off as it appears 5.0.0rc1 is not signed:
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x-prerelease/yum
gpgcheck=0
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
Installed logstash using sudo yum install logstash
Running Transaction
Installing : 1:logstash-5.0.0~rc1-1.noarch 1/1
chmod: cannot access `/etc/logrotate.d/logstash': No such file or directory
Using provided startup.options file: /etc/logstash/startup.options
Successfully created system startup script for Logstash
Try to chkconfig it like the docs say:
# chkconfig --add logstash
error reading information on service logstash: No such file or directory
It definitely did not create any file in /etc/init.d:
# ls -la /etc/init.d/logstash
ls: cannot access /etc/init.d/logstash: No such file or directory
It did create a file in /etc/init:
# cat /etc/init/logstash.conf
description "logstash"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
#nice 19
#chroot /
#chdir /
#limit core <softlimit> <hardlimit>
#limit cpu <softlimit> <hardlimit>
#limit data <softlimit> <hardlimit>
#limit fsize <softlimit> <hardlimit>
#limit memlock <softlimit> <hardlimit>
#limit msgqueue <softlimit> <hardlimit>
#limit nice <softlimit> <hardlimit>
#limit nofile <softlimit> <hardlimit>
#limit nproc <softlimit> <hardlimit>
#limit rss <softlimit> <hardlimit>
#limit rtprio <softlimit> <hardlimit>
#limit sigpending <softlimit> <hardlimit>
#limit stack <softlimit> <hardlimit>
exec chroot --userspec logstash:logstash / /usr/share/logstash/bin/logstash "--path.settings" "/etc/logstash"
This is a fresh OS install and fresh logstash install.
Java version:
# java -version
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)