> On Nov 26, 2022, at 4:54 AM, Amn Ojee Uw <amnoje...@gmail.com> wrote:
>
> Please excuse my ignorance, buy what log would that be and how can I get to
> it?
>
> On 2022-11-26 2:23 a.m., Thomas Hoffmann (Speed4Trade GmbH) wrote:
>>> -----Ursprüngliche Nachricht-----
>>> Von: Rob Sargent <rsarg...@xmission.com>
>>> Gesendet: Samstag, 26. November 2022 06:32
>>> An: Tomcat Users List <users@tomcat.apache.org>
>>> Betreff: Re: Starting Tomcat 10 at bootup
>>>
>>>
>>>> On Nov 25, 2022, at 4:28 PM, Amn Ojee Uw <amnoje...@gmail.com>
>>> wrote:
>>>> Hey folks!
>>>>
>>>> The issue :
>>>> ~~~~~~~
>>>>
>>>> I just installed 'apache-tomcat-10.0.27.tar.gz' in my Debian 11 (stable)
>>>> box,
>>> running OpenjDK 17.0.4, this was done following the recommendation on 'How
>>> to Install Apache Tomcat on Debian 11 (Step by Step)
>>> <https://www.linuxtechi.com/how-to-install-apache-tomcat-on-debian/> '.
>>> With the exception of the java installation, I followed the steps up to
>>> section 8
>>> where I get this error :
>>>> */sudo systemctl restart tomcat/**/
>>>> /**/Job for tomcat.service failed because the control process exited
>>>> with error code./**/ /**/See "systemctl status tomcat.service" and
>>>> "journalctl -xe" for details./*
>>>>
>>>> I followed the recommendation of the error message and I get this :
>>>>
>>>> systemctl status tomcat.service
>>>> ● tomcat.service - Tomcat webs servlet container
>>>> Loaded: loaded (/etc/systemd/system/tomcat.service; *enabled*; vendor
>>> preset>
>>>> Active: activating (auto-restart) (Result: exit-code) since Fri
>>>> 2022-11-25>
>>>> Process: 86949 ExecStart=/opt/tomcat/bin/startup.sh (code=exited,
>>> status=0/>
>>>> Process: 86960 ExecStop=/opt/tomcat/bin/shutdown.sh (code=exited,
>>> status=1/>
>>>> CPU: 38ms
>>>>
>>>> My Imperfect Solution
>>>> ~~~~~~~~~~~~~~~
>>>>
>>>> If from the command prompt or a shell script, I run this code sudo
>>> '/opt/tomcat/bin/catalina.sh run', Tomcat runs nicely, but it grabs the
>>> Terminal,
>>> if I close the Terminal, Tomcat just stops working. Obviously not a perfect
>>> solution.
>>>> I am a newcomer to the Linux world, but in Windows I had the same issue,
>>>> so I
>>> wonder if this is a potential bug.
>>>> Please help me resolve this issue or let me know how to report this bug.
>>>> (This
>>> would be my first contribution to the team, so I am rightfully exited).
>>>> Thanks in advance.
>>> What do the logs have to say?
>>>
>> Syslog and Tomcat-Logs should provide more information.
>> Systemctl usually doesn’t help much even if it tells you to look at it 😉
>>
>> Btw: You can also run the sh-file with ampersand at the end to get back to
>> your console.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
The startup.sh file in your first post will likely name the log file. Or look
in /var/log or in /opt/tomcat. Likely named catalina.out but that’s a guess
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org