The officially official Devuan Forum!

You are not logged in.

#1 2024-02-24 10:55:39

alsen
Member
From: Bologna
Registered: 2016-12-15
Posts: 26  

tomcat10 on daedalus

Hi to all

I have installed tomcat10 package https://pkginfo.devuan.org/cgi-bin/pack … -1+deb12u1
on daedalus and it seems  that is missing /etc/init.d/tomcat10  suitalble for start the programa liike in other version
but it is present the file /lib/systemd/system/tomcat10.service  that on daedalus is useless

Has anyone already solved the question or am I doing something wrong?

Thank you

Alberto Senni


Maker and a fun of Devuan

Offline

#2 2024-02-24 16:47:12

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,427  

Re: tomcat10 on daedalus

The orphan-sysvinit-scripts package has an init script for tomcat9. Maybe that can be modified to work with tomcat10. I don't know if there's a better solution.

Offline

#3 2024-02-24 18:34:24

alsen
Member
From: Bologna
Registered: 2016-12-15
Posts: 26  

Re: tomcat10 on daedalus

Thank fsmithred for a rapid response.

I had already seen that package already mentioned here somewhere, the tomcat start script is very complex and adapting the tomcat9 one is not easy at least for me who has been using tomcat out-of the box on Devuan for years.
I also wrote to the Debian package maintaner, let's see if he replies.


Maker and a fun of Devuan

Offline

#4 2024-02-25 15:15:10

boughtonp
Member
From: UK
Registered: 2023-01-19
Posts: 206  
Website

Re: tomcat10 on daedalus

> the tomcat start script is very complex

No, it's not. It's about 260 lines long, and most of that is boilerplate.

//sources.debian.org/src/orphan-sysvinit-scripts/0.16/scripts/tomcat9/

The difference between running Tomcat 9 and Tomcat 10 is that some previously optional stuff might no longer be optional:

//tomcat.apache.org/tomcat-9.0-doc/setup.html
//tomcat.apache.org/tomcat-10.1-doc/setup.html

That aside, adapting the script may be as simple as search-replace "tomcat9" with "tomcat10".


3.1415P265E589T932E846R64338

Offline

#5 2024-02-25 17:55:53

alsen
Member
From: Bologna
Registered: 2016-12-15
Posts: 26  

Re: tomcat10 on daedalus

Thank boughtonp  for your observation and encouragement,
in fact, it is not impossible, it takes a little patience and a little time to fine-tune the script.

For the moment I'm using tomcat8 and tomcat9 on the production servers (all Devuan of course) that I'm following, but sooner or later I'll have to switch to tomcat10 and with a bit of patience I'll follow the path you showed me.


Maker and a fun of Devuan

Offline

Board footer