Skip to content

Commit

Permalink
moved running pid out of graylog2-web-interface folder. updates now a…
Browse files Browse the repository at this point in the history
…ctually work
  • Loading branch information
Oudmaijer, S - SPLXL authored and Oudmaijer, S - SPLXL committed Feb 25, 2014
1 parent 0da59d6 commit acc9114
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Run default recipe to install server with web interface.

Graylog2 server

* default[:graylog2][:server_version] = '0.20.0-rc.2'
* default[:graylog2][:server_version] = '0.20.0'
* default[:graylog2][:server_home] = '/opt/graylog2-server'
* default[:graylog2][:server_user] = 'graylog2'
* default[:graylog2][:server_group] = 'graylog2'
Expand All @@ -32,7 +32,7 @@ Graylog2 server

Graylog2 web interface

* default[:graylog2][:server_version] = '0.20.0-rc.2'
* default[:graylog2][:server_version] = '0.20.0'
* default[:graylog2][:server_home] = '/opt/graylog2-server'
* default[:graylog2][:server_user] = 'graylog2'
* default[:graylog2][:server_group] = 'graylog2'
Expand Down
2 changes: 1 addition & 1 deletion attributes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
override[:elasticsearch][:allocated_memory] = "512m"
override[:elasticsearch][:plugins] = {"mobz/elasticsearch-head" => ""}

default[:graylog2][:server_version] = '0.20.0'
default[:graylog2][:server_version] = '0.20.1'
default[:graylog2][:server_home] = '/opt/graylog2-server'
default[:graylog2][:server_user] = 'graylog2'
default[:graylog2][:server_group] = 'graylog2'
Expand Down
2 changes: 1 addition & 1 deletion attributes/web-interface.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default[:graylog2][:web_version] = '0.20.0'
default[:graylog2][:web_version] = '0.20.1'
default[:graylog2][:web_home] = '/opt/graylog2-web-interface'
default[:graylog2][:web_user] = 'graylog2-web'
default[:graylog2][:web_service_name] = 'graylog2-web-interface'
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'All rights reserved'
description 'Installs/Configures graylog2'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.2'
version '1.0.3'

recipe "graylog2::default", "Installs and configures a graylog2 server"
recipe "graylog2::server", "Installs and configures a graylog2 server"
Expand Down
4 changes: 2 additions & 2 deletions templates/default/graylog2-web-interface.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
APP=<%= node[:graylog2][:web_service_name] %>
APP_PATH=<%= node[:graylog2][:web_home] %>
NOHUP=`which nohup`
GRAYLOG2_PID=$APP_PATH/RUNNING_PID
GRAYLOG2_PID=/var/run/<%= node[:graylog2][:web_service_name] %>

test -x /usr/bin/java || exit 0

Expand All @@ -24,7 +24,7 @@ set -e
start() {
echo "Starting $APP ..."
cd $APP_PATH/bin
$NOHUP ./$APP -mem <%= node[:graylog2][:web_mem] %> &
$NOHUP ./$APP -mem <%= node[:graylog2][:web_mem] %> -Dpidfile.path=$GRAYLOG2_PID &
}

stop() {
Expand Down

0 comments on commit acc9114

Please sign in to comment.