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, 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 true: environment variables are replaced before the 'su' command is executed, so your issue not a problem. If you were to use 'single quotes' then the string wouldn't be processed in this way. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUUnRzAAoJEBzwKT+lPKRYjnIP/jTRZcq7zwhFV2JebboeaUDW Z8n2ofKwavV2cJKP/cUewjX66SCz+3YhQTRLl5uqzMtxpLRx2canrsyevbQslV4A IMhJBrjMTCmIbOGKu2Iq3iuksuRbX9Ki5KTqEByPflWJJqYDj+/CthdHNxOLSLVH 0Pv5ls47xYaSllN+2Lgl8rYr1SuC2WsKY2mUSFzIIAD+nkZRGV0L3TnPKlyW8H1U BeSauhvhykAiF6Syk+38pqmzwg0u/7UQgb1FdF8s4+m9akQ0/nZTh92BlZWjXzoY 9e66bMngWIHjIDiDeLnYCpuTIhMXcReabAjT1b98Rwj/dIjqYGc0EY2vpyMK/z72 /66lKzOEeF9Zx8QrQQdFrdAs6dT+0e99KbkaASQhzGT0bitkZR2AeR0SH8LS8OuL D13beOI9g6zCt9pv40awCJEom5fE+cpZX8+Ywm0pxeE+J6VufNLRbXKOkQEjzjoR l1RJ8EvWFMk5b9yMcw1DHF5kEBdE/vezOKCkpRUUAbjjiTfbr7reRi5mYwSST8qo 3KD9cGynrW3ZCHbNbcgpl6VdTrs6AL7PrZJXHmOWYtY1yv8Z/LTzQYzX0mh6cGY0 gNQY9R0JmgOH08FzfpqMaBsqIu9FtjMqb+J5NVgLrDgiQ0E3IFZEjNbRw/cJmUBT SsgUPkmiq2nUzzECbBXu =IMT0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ________________________________ Anthony Bungeroth Systems Engineer p: 347-762-5863 (347-76 BLUME) f: 419-831-5614 e: anth...@blumetech.com Our Blog<http://blogs.blumetech.com/> [blumetech] <http://www.blumetech.com> <http://www.blumetech.com>[blumetech] <http://www.aws-partner-directory.com/PartnerDirectory/PartnerDetail?Name=Blume+Technical+Consulting> <http://www.aws-partner-directory.com/PartnerDirectory/PartnerDetail?Name=Blume+Technical+Consulting> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, you are directed not to read, disclose, reproduce, distribute, disseminate or otherwise use this transmission, and we also request that you immediately delete this message and its attachments, if any. Delivery of this message to any person other than the intended recipient(s) is not intended in any way to waive privilege or confidentiality. Finally, the recipient should check this email and any attachments for the presence of viruses; Blumetech accepts no liability for any damage caused by any virus transmitted by this email.