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

Init script not working with Fedora 17 #75

Closed
dusty opened this issue Aug 31, 2013 · 12 comments
Closed

Init script not working with Fedora 17 #75

dusty opened this issue Aug 31, 2013 · 12 comments
Milestone

Comments

@dusty
Copy link

dusty commented Aug 31, 2013

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.

@jamtur01
Copy link
Contributor

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.

@jordansissel
Copy link
Contributor

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)

@codyro
Copy link

codyro commented Sep 4, 2013

@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?

@lmorfitt
Copy link

lmorfitt commented Sep 6, 2013

Try this which works on RHEL 6

https://gist.github.com/yummylogs/6459539

@polansky
Copy link

polansky commented Nov 4, 2013

Thanks @YummyLogs . I've extended this so that the ".lumberjack" file isn't created at "/'".

https://gist.github.com/polansky/7307828

@rfay
Copy link

rfay commented Jan 10, 2014

Note that the same problem in Centos 6.4, not just Fedora.

/etc/init.d/logstash-forwarder: line 25: /lib/init/vars.sh: No such file or directory

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

@jordansissel
Copy link
Contributor

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.

@aesopwolf
Copy link

Does anyone have a working init script for CentOS?

@adamcstephens
Copy link

There's one in #196

@jordansissel
Copy link
Contributor

We use pleaserun to generate the init script now, which should work on most linux platforms.

@jordansissel
Copy link
Contributor

the new init script is built with master and will be a part of the next release.

@jordansissel
Copy link
Contributor

This is fixed in #402

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

9 participants