Bug#925473: tomcat9: sysvinit script missing

Ondrej Zary ondrej at zary.sk
Fri Sep 24 10:55:58 BST 2021


On Tuesday 21 September 2021, Thorsten Glaser wrote:
> Ondrej Zary dixit:
> 
> >Hello, why tomcat9 still does not have an init script despite it has
> >been posted here?
> >
> >I'm upgrading a Stretch server without systemd to Buster. Tomcat 9 is
> >installed but cannot be started without an init script.
> 
> Mostly because Emmanuel insists on using systemd’s abstraction to
> create the user account, despite a working, tested, alternative I
> offered to maintain and be responsible for exists.
> 
> The “sysvinit” branch contains a working version of the package
> which I update from time to time. I’m also publishing builds of
> that here:
> 
> http://www.mirbsd.org/~tg/Debs/dists/bullseye/lts/Pkgs/tomcat9/
> 
> This is the “wtf-lts” repo on Wouter’s extrepodata.
> 
> The package contains the init script, the user management logic
> that actually works across *all* *supported* Debian configurations
> instead of just an *arbitrary* subset of those, and some instructions
> for nōn-systemd users in logging.properties (the default logging is
> configured for systemd) and README.Debian (specifically noting that
> some of the applied hardening is systemd-specific, but compared to
> stretch/sysvinit you’re not worse off, security-wise, so…).
> 
> I have no idea why Emmanuel, the primary maintainer, has been set
> so strongly against merging this patch for as long as I promise to
> take care of it and deal with any related fallout (maybe some systemd
> fan paid him) but this is what is, and that GR outcome is interpreted
> as Emmanuel being able to block this indefinitely despite nōn-systemd
> continuing to be a supported way of running Debian (albeit not without
> UsrMove in bookworm/sid).

Thank you.
I simply put your init script manually into /etc/init.d/
Also added /usr/libexec/sysv-getjre.sh and /usr/libexec/sysv-start.sh and
changed formatter in logging.properties. Now Tomcat 9 works fine.

Fortunately, Debian tomcat9 package does not depend on systemd-sysv. So systemd is installed but it does no harm as it's not running.

-- 
Ondrej Zary



More information about the pkg-java-maintainers mailing list