-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Eddie,

On 1/15/14, 11:01 AM, Bush, Eddie wrote:
> 
> 
> -----Original Message----- From: Daniel Mikusa
> [mailto:dmik...@gopivotal.com] Sent: Wednesday, January 15, 2014
> 9:54 AM To: Tomcat Users List Subject: Re: [tomcat7] rhel 6 -
> init.d script works; does not start on reboot
> 
> On Jan 15, 2014, at 10:32 AM, "Bush, Eddie"
> <eddie.b...@williams.com> wrote:
> 
>> Howdy, List!
>> 
>> I'm in a bit of a pickle here. I'm a senior dev, and quite good
>> at that, but for my new client I'm also charged with configuring
>> our machines. We're running on Tomcat 7, so I grabbed the tgz and
>> installed it per the instructions.
>> 
>> Everything works great! ... until I reboot the server :) At that
>> point, everything else comes up, but tomcat does not.
>> 
>> I have removed all logs and rebooted and see nothing notable in
>> any of the tomcat logs (because, of course, it did not start),
>> nor can I find anything in syslog or messages. The chkconfig
>> command reports that the script is configured to run for runlevel
>> 2-5, and I've even inspected the links in rc.d/rc*.d and they are
>> linked to the init.d script (which is the same danged script that
>> works interactively via "service tomcat start/stop"!)
> 
> Dan> Where did you get the init script from? EB> Off the net
> somewhere, initially. I tweaked it to use sudo to change user to
> tomcat:tomcat though, and I changed the chkconfig declaration to be
> extremely similar to what nginx uses, since that works fine.
> chkconfig likes the script, and sets it up in what looks to be
> perfect form (comparing to other things). These are pretty standard
> scripts though, yes? They basically just delegate to the scripts
> distributed with tomcat, which all end up calling catalina.sh :-)

Note that you shouldn't have to use "sudo" in init.d scripts: only
root should be running those in the first place.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS2FBlAAoJEBzwKT+lPKRYQ+kP/R/FPKYQSwZTR87T4R7fJi9V
kgD6dD/6wzOsvlWwCbebsWMisJlARAV2vAYJIfeh5+RdL8DLllmQk0Bj/mpQ8a2e
lsKRBInQLOg08HM1hKzb2F9R/AvGkO9aPuc8LesVKVoUGUdiGKoKf2knPx2TT7dp
4myJWniEzhyHIHzKg/MBraLrs1CoLk9Ud4T7hwrvJ6KPrC/MaNUFOH6PpnJqpQCj
smUyPDsHRuoRq7ZYpJkl6LV/H4bJW7AAVa9Pgbt9ykEvuwYlV8UlwIzA7nf8mOBv
nCr661b/HLU3R6Frpop+9nkkUqGlNsQVzy60n6ADWrZasgBfP1y8r7CN5MBpE8D2
IvlrfnivmaCpfmYbHaKLojiT7/hd2oYFtL2OMzNGJrEFDIdwDNwg0FthK1dZ7PA2
QxRwO2yXK1dV4F/LV5XJsxvbRlNlIXYK8KGKxeBAVY+NMj0pllUl1ciDBFXhG0hW
73P46/7sP29Ct0d1x3jblYK9UlVatP2U8uxmR+jW0i39hzQvkwNJJFwuNfeVymvl
MmnXHwU89v0LR2eCYTGN2DmAcKaOlof8D1rD9S6iyyaT0FxzbQ5dE/tAoIoQnWh/
3zDV/8xXCBSxSalH4qv8wu2/xNLG4NLGvOmuO4QZTKI1S4zQfpGSA37ToRiukUJ4
7Fwzy7ou9H9hN7HMmc7z
=zA2t
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to