RE: Tomcat Start script not starting from init.d or rc.local

2014-10-30 Thread Anthony Bungeroth
Ah ok, thanks. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, October 30, 2014 1:25 PM To: Tomcat Users List Subject: Re: Tomcat Start script not starting from init.d or rc.local -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mathieu

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mathieu, On 10/30/14 12:11 PM, Mathieu Larchet wrote: > Your variables are not visible from the su user, you should export > them as you launch your command : > > su tomcat -c "JAVA_HOME=... CATALINA_HOME=... > $CATALINA_HOME/bin/startup.sh" Not

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-30 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 10/30/2014 7:17 AM, Christopher Schultz wrote: > Mark, > > On 10/29/14 3:44 PM, Mark Eggers wrote: > >> On 10/29/2014 10:33 AM, Anthony Bungeroth wrote: > >>> I basically need a script to run automatically when I reboot >>> the server. I

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-30 Thread Mathieu Larchet
Hi, Your variables are not visible from the su user, you should export them as you launch your command : su tomcat -c "JAVA_HOME=... CATALINA_HOME=... $CATALINA_HOME/bin/startup.sh" Good luck - Mail original - > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Mark, > > On 10/29

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 10/29/14 3:44 PM, Mark Eggers wrote: > > On 10/29/2014 10:33 AM, Anthony Bungeroth wrote: > >> I basically need a script to run automatically when I reboot the >> server. I have tried the various ways to get it to work in >> init.d and i

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Mark Eggers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/29/2014 10:33 AM, Anthony Bungeroth wrote: > > I basically need a script to run automatically when I reboot the > server. I have tried the various ways to get it to work in init.d > and it's not working. When I go into init.d and run it manu

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Jason Ricles
You can use upstart if you have that, with a .conf file. However unless you source the profile.d or wherever your environment variables are held do not use them in an init task! On Wed, Oct 29, 2014 at 1:55 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MES

Re: Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Anthony, On 10/29/14 1:33 PM, Anthony Bungeroth wrote: > I basically need a script to run automatically when I reboot the > server. > > I have tried the various ways to get it to work in init.d and it's > not working. When I go into init.d and r

Tomcat Start script not starting from init.d or rc.local

2014-10-29 Thread Anthony Bungeroth
I basically need a script to run automatically when I reboot the server. I have tried the various ways to get it to work in init.d and it's not working. When I go into init.d and run it manually it works though. I think it has something to do with the fact that to run the script manually I am