AnsweredAssumed Answered

best way to set java_home in oneiric init.d scripts

Question asked by peppert on Feb 11, 2012
Latest reply on Feb 12, 2012 by nabeel
I've noticed that rebooting hosts screws up tasktracker from starting normally via warden.  It works fine if I /etc/init.d/mapr-warden restart with a shell that has JAVA_HOME defined.

If that's the problem, what's the best way to set JAVA_HOME for init.d scripts in oneiric?  /etc/environment isn't doing the trick, and I assume that the scripts get overwritten at an update (and I don't really like to entertain the thought of changing packaged files)