make it compatible with war install and gentoo

As discussed thou IRC, here it is a base to start to work to migrate the recipe to the nginx style I told you.

I tested it on my gentoo, it is working. I didn't test on other distrib.

Also, the war recipe works on gentoo, but the init method is missing for the other distrib.