You are not logged in.
Pages: 1
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
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
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
> 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
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
Hi boughtonp
as you rightly suggested, the thing is very simple, I solved it positively with 2 steps:
1. copying the /etc/init.d/tomcat9 script to /etc/init.d/tomcat10 and then changing the tomcat9 string to tomcat10
2. copying two other scripts from /usr/libexec/tomcat9 to /usr/libexec/tomcat10: sysv-getjre.sh and sysv-start.sh and always rename tomcat9 to tomcat10
and everything works
alsen
Maker and a fun of Devuan
Offline
Pages: 1