-
Notifications
You must be signed in to change notification settings - Fork 413
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
Init script not working with Fedora 17 #75
Comments
I think you'll find this is because FC17 changed from SysV init to systemd. It'd be an easy fix for some edits and new documentation. |
Realistically, we should just start shipping more-specific package variants per OS. This work is likely to wait until I have time to work on github.com/jordansissel/pleaserun (which will generate init scripts for multiple platforms) |
@jamtur01 Those aren't generally used on RHEL releases from my knowledge so you'll still run into issues on SysV init - you'll generally use something like /etc/rc.d/init.d/functions which has similar functions (status, daemon, etc). @jordansissel Maybe in the interim some sort of Makefile fudging would work? |
Try this which works on RHEL 6 |
Thanks @YummyLogs . I've extended this so that the ".lumberjack" file isn't created at "/'". |
Note that the same problem in Centos 6.4, not just Fedora.
I note that the logstash book sample code has yet another version of init scripts (and config scripts) for several environments, https://github.com/jamtur01/logstashbook-code/tree/master/code/4 |
My intention is to finish work on jordansissel/pleaserun to the point where I can generate appropriate runner scripts (init, systemd, upstart, etc) for any desired target platform. |
Does anyone have a working init script for CentOS? |
There's one in #196 |
We use pleaserun to generate the init script now, which should work on most linux platforms. |
the new init script is built with master and will be a part of the next release. |
This is fixed in #402 |
The init script is referencing non-existing files on Fedora 17.
Running it shows:
/etc/init.d/lumberjack: line 27: /lib/init/vars.sh: No such file or directory
It also references /lib/lsb/init-functions, which doesn't exist.
We are starting via monit and our own init scripts, so its not much of an issue. I usually do that anyway. But, the documentation does refer people to create the RPM, so it could cause frustration for some.
Perhaps some documentation on systems the init script is known to work on would be helpful and a disclaimer to change it on your own if you run something else. Not sure if you want to have to support init scripts for every os out there.
I was thinking maybe this needs to go in FPM, but It looks like its referencing lumberjack.init in the Makefile.
The text was updated successfully, but these errors were encountered: