extract logstash init.d script