Skip to content

Commit

Permalink
logstash-central-init fails to start
Browse files Browse the repository at this point in the history
Added "--" to the $command
  • Loading branch information
jonbrouse committed May 9, 2014
1 parent efd8e17 commit e6af266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/3/logstash-central-init
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pid_file="/var/run/$name.pid"
cwd=`pwd`

start () {
command="${logstash_bin} agent --verbose -f $logstash_conf --log $logstash_log"
command="${logstash_bin} -- agent --verbose -f $logstash_conf --log $logstash_log"

log_daemon_msg "Starting $name"
if start-stop-daemon --start --quiet --oknodo -d /opt/logstash/ --pidfile "$pid_file" -b -m -N 19 --exec $command; then
Expand Down

0 comments on commit e6af266

Please sign in to comment.