[jboss-user] jboss shutdown problem
gorky at freenet.carleton.ca
Thu Jan 15 07:57:44 EST 2009
-----BEGIN PGP SIGNED MESSAGE-----
This is actually a Linux issue, NOT a JBoss issue.
Cron does not normally fully set up all the paths. And for the last
several generations of Linux (for some distros), the Java Setups (as in,
adding Java to the system path, and setting the env vars) have often
been handled by "extra" scripts in /etc/profile.d, which Cron will not
run by default. Btw, /etc/profile is not run by cron either.
So, your choice is to either run the Java Setup scripts directly, set
JAVA_HOME in your cron script, or update the PATH in CRON to include the
Java Path (this last is NOT recommended).
For more details, feel free to check out your man pages, especially "man
Marek Keerand wrote:
> Hello to all
> I wrote a shell script witch stops jboss and runs from cron. Problem is,
> that shutdown.sh can’t find java.
> Command for stopping jboss is:
> /usr/local/jboss-4.2.2.GA/bin/shutdown.sh -s servername –S
> error i get is:
> usr/local/jboss-4.2.2.GA/bin/shutdown.sh: line 70: exec: java: not found
> Any suggestions anybody?
> Thank you in advance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the jboss-user