Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flags/options should be able to be passed #19

Closed
Bapabooiee opened this issue Jan 24, 2011 · 8 comments
Closed

Flags/options should be able to be passed #19

Bapabooiee opened this issue Jan 24, 2011 · 8 comments

Comments

@Bapabooiee
Copy link

Graylog 2 currently ignores all arguments passed to it. This means users cant:

  • Specify its PID file location (for example, in Gentoo, /var/tmp/run is the standard, not /tmp.)
  • Specify which configuration file to use.
  • Specify where, or if, to save log files.

Unless this can be amended, this'll also probably result in less adoption of Graylog2, since distro repository devs will have to hack at its code in order to configure it meet their distribution's standards.

@lennartkoopmann
Copy link
Contributor

thx, moved this up in priority

@wr0ngway
Copy link

wr0ngway commented Feb 8, 2011

Also running into this - my tmp dir gets cleared out pretty regularly, so doesn't make a good location for storing the tmp file. Would be nice if the ctl script managed the pid file or its location was configured in the graylog2.conf.

@Bapabooiee
Copy link
Author

I think the PID location would be best-specified as an argument, rather than in graylog2.conf, as init scripts will need to be able to easily know/set the PIDfile location.

That said, I think /var/run/graylog2.pid would be a good, standard location for the PIDfile (if one isn't specified as a flag).

@lennartkoopmann
Copy link
Contributor

Yepp.

I'll include this in the next release. Maybe one of you finds the time to integrate it?! It's pretty isolated of the other code so it should not take so long.

@pstehlik
Copy link
Contributor

how about using log4j for logging?
i would be willing to pick that up in a first implementation.

workaround for log files would be directing the output to a log file of your choice like
sudo java -jar graylog2-server.jar > /var/log/graylog2.log 2>&1 &

@lennartkoopmann
Copy link
Contributor

yes philip :) please wait until I merge some stuff to master in the next days. I'll let you know once it's done

@lennartkoopmann
Copy link
Contributor

philip, i merged the big load of changes to master just now. you could start changing to log4j now

@lennartkoopmann
Copy link
Contributor

Moved to http://jira.graylog2.org/browse/SERVER-44 as this issue tracker is being shut down! Thank you!

joschi pushed a commit that referenced this issue Feb 15, 2018
joschi pushed a commit that referenced this issue Feb 15, 2018
joschi added a commit that referenced this issue Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants