Incorrect LSB Header?

I’m trying to build mongo and it fails with a “File `mongod’ without LSB header found in /var/tmp/mongo-1.6.5-19.1-root/etc/init.d/”

But the LSB header for that file looks fine to me. I’ve compared it to several other LSB header examples and I can’t see what it’s complaining about.

The project link to the mongo package is below. You can see in the source a file called init.d-mongod which is copied into /etc/init.d/ with the name monogd.

https://build.opensuse.org/package/show?package=mongo&project=home%3Amww%3Afuse44

Any clues?

Thanks!

Hi
You need to look at the /etc/init.d/skeleton file and adapt that init script to suit, you might also want to look at http://en.opensuse.org/openSUSE:Packaging_guidelines#Init_scripts and also the method to install your init script using the macro %insserv.

Thanks, I didn’t realize that the Should-Start and Should-Stop where required fields.

I added them in and it no longer errors (at that stage at least)

-m