graylog2 systemd scripts
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
graylog-server.service
graylog2-web.service

README.md

graylog2 systemd scripts

Here you can find systemd scripts for latest (v0.20.6) graylog2-server and graylog2-web. Please note, that these scripts assume couple of things:

  • systemd is in version 208 or newer
  • graylog2-server is located in /opt/graylog2-server
  • graylog2-web is located in /opt/graylog2-web
  • graylog2-server is running on the same machine as Elasticsearch and MongoDB (if this is not the case, just remove Requires section from graylog2-server script)
  • scripts are binded to network.target and will fail to start when it's not present (both during boot time and when for some reason network.target will go down)

Please notice that there are no guarantees that hamsters will not eat your server (nor that those scripts will work for you).

Pull requests are more than welcome! (:

Installation

graylog2-server:

sudo wget -O /lib/systemd/system/graylog2-server.service https://raw.githubusercontent.com/hadret/scripts-graylog2/master/graylog2-server.service
sudo systemctl enable graylog2-server
sudo systemctl start graylog2-server

graylog2-web:

sudo wget -O /lib/systemd/system/graylog2-web.service https://raw.githubusercontent.com/hadret/scripts-graylog2/master/graylog2-web.service
sudo systemctl enable graylog2-web
sudo systemctl start graylog2-web

Authors

Filip "Hadret" Chabik hadret@gmail.com / @hadret

(Remember to add yourself when pull requesting).