forked from NumberFour/logstash-rpms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass config-file to use from init-script.
- Loading branch information
Jens Braeuer
committed
Aug 16, 2011
1 parent
b71203f
commit 5bb937b
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
cd /var/lib/logstash | ||
FULLNAME="$0" | ||
exec -a "${FULLNAME}" java -cp /etc/logstash/:/usr/share/logstash/logstash-@@@version@@@-monolithic.jar logstash.runner agent -f /etc/logstash/logstash.conf -- web --backend "elasticsearch:///?local" | ||
exec -a "${FULLNAME}" java -cp /etc/logstash/:/usr/share/logstash/logstash-@@@version@@@-monolithic.jar logstash.runner agent "$@" -- web --backend "elasticsearch:///?local" |