Skip to content

Instantly share code, notes, and snippets.

@h4cc
Created May 1, 2014 10:48
Show Gist options
  • Save h4cc/9fe9ebf88ae7ef772b4b to your computer and use it in GitHub Desktop.
Save h4cc/9fe9ebf88ae7ef772b4b to your computer and use it in GitHub Desktop.
Commands needed to stop and restart all services in a Graylog2 server.
# Stop all services in needed order.
service graylog2-web stop; service graylog2-server stop; service elasticsearch stop; service mongodb stop;
# Start all services in needed order.
# - sleep is needed, so ES and Mongo have time to startup.
service elasticsearch start; service mongodb start; sleep 5; service graylog2-server start; service graylog2-web start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment