17e06b2eb7
- Make sample config file work with BSD syslog - Startup script fixes - Convert to staging PR: ports/182492 Submitted by: Regis A. Despres <regis.despres@gmail.com> (maintainer)
13 lines
772 B
Text
13 lines
772 B
Text
%%LOGSTASH_HOME%%/%%LOGSTASH_JAR%%
|
|
@exec mkdir -p %%LOGSTASH_RUN%%
|
|
@exec mkdir -p %%LOGSTASH_DATA_DIR%%
|
|
@unexec if cmp -s %D/%%ETCDIR%%/logstash.conf.sample %D/%%ETCDIR%%/logstash.conf; then rm -f %D/%%ETCDIR%%/logstash.conf; fi
|
|
%%ETCDIR%%/logstash.conf.sample
|
|
@exec if [ ! -f %D/%%ETCDIR%%/logstash.conf ] ; then cp -p %D/%F %B/logstash.conf; fi
|
|
@unexec if cmp -s %D/%%ETCDIR%%/elasticsearch.yml.sample %D/%%ETCDIR%%/elasticsearch.yml; then rm -f %D/%%ETCDIR%%/elasticsearch.yml; fi
|
|
%%ETCDIR%%/elasticsearch.yml.sample
|
|
@exec if [ ! -f %D/%%ETCDIR%%/elasticsearch.yml ] ; then cp -p %D/%F %B/elasticsearch.yml; fi
|
|
@dirrmtry %%LOGSTASH_HOME%%
|
|
@dirrmtry %%ETCDIR%%
|
|
@unexec rmdir %%LOGSTASH_DATA_DIR%% 2>/dev/null || true
|
|
@unexec rmdir %%LOGSTASH_RUN%% 2>/dev/null || true
|