update
This commit is contained in:
@@ -39,7 +39,7 @@ function Usage {
|
||||
|
||||
function RestoreConf {
|
||||
if [ -z "$(ls config/)" ]; then
|
||||
Print Restore default config files and quit ...
|
||||
Print Restoring default config files and quit ...
|
||||
tar zxf config.tgz
|
||||
GOT_SIGTERM=1
|
||||
exit 0
|
||||
@@ -48,20 +48,21 @@ function RestoreConf {
|
||||
|
||||
function InstallPlugin {
|
||||
for f in $(ls -d offline-plugins/*.zip 2>/dev/null); do
|
||||
Print Install plugins from offline file: $f ...
|
||||
Print Installing plugins from offline file: $f ...
|
||||
./bin/logstash-plugin install file://$f
|
||||
mv $f $f.installed
|
||||
done
|
||||
}
|
||||
|
||||
function StartProc {
|
||||
Print Start logstash ...
|
||||
Print Starting logstash ...
|
||||
./bin/logstash \
|
||||
--path.data /opt/logstash/data \
|
||||
--path.logs /opt/logstash/logs \
|
||||
--path.settings /opt/logstash/config \
|
||||
&>> logs/logstash.out &
|
||||
PIDS="$PIDS $!"
|
||||
Print Logstash started.
|
||||
}
|
||||
|
||||
function Main {
|
||||
|
Reference in New Issue
Block a user