Is there a systemd units file available for logstash 1.5 on centOS 7


#1

I loaded my CentOS 7 logstash 1.5 via yum from:

http://packages.elasticsearch.org/logstash/1.5/centos

However it doesn't seem to come with a systemd units file (elasticsearch has one). There is an /etc/init.d/logstash script, but I would rather have all this managed directly via units files in systemd.

Is there a units file available somewhere? If not I could code up my own .... thanks


(Joshua Rich) #2

There isn't currently a systemd unit file for Logstash, see this issue on GH: https://github.com/elastic/logstash/issues/3606

Note that systemd on CentOS can start/stop traditional sysv init scripts in an identical fashion to native systemd units. So you should be able to simply use systemctl [start|stop] logstash to start/stop Logstash.


(system) #3