On 22:52:27 Tuesday 19 July 2011 Nicolas Mailhot wrote:
Le mardi 19 juillet 2011 à 18:30 +0000, "Jóhann B.
Guðmundsson" a
écrit :
> Hum best is to provide you with example which daemon do you maintain I
> can convert it for you and provide it to you as an example anyway here's
> an example of a systemd unit that I converted sometime ago for a know
> application named tomcat6 and I'll leave readers to be the judge of that
> what is harder to understand the native systemd unit or the legacy sysv
> init script...
>
> First the converted unit file
>
> Now the legacy sysv init script that everybody seem to love and cheerish
> so much...
I don't think anyone loves this particular sysv script but you realize I
hope that 99% of its complexity is here to make multi-instanciation
trivial (because when every user can run an IDE like eclipse that wants
its own tomcat instance to play with you *do* need multi-instanciation)
and your unit file does not support this use case at all?
Off topic but did anyone managed to use our packaged tomcat with Eclipse
(assuming WTP usage), I personally never managed to make it work so if this
was the reason for the complexity it's not smth that ever worked for me.
Alexander Kurtakov