11 Nov 21:53
Re: helma startup script on FreeBSD
Julian Tree <julian.tree <at> gmail.com>
2006-11-11 20:53:48 GMT
2006-11-11 20:53:48 GMT
Just to follow up on this, in case others having the same problem getting helma to automatically starting up on freebsd. I recently has the "privileg" of visiting where the actually server is located. Trust me, it was not by choice.
I witness the startup process on the monitor, and I notice that when the startup scripts hit the helma startup.sh, it complained "java not found", everything all the sudden just make sense.
I just added the following line in the helma/start.sh (it is actually commented out)
JAVA_HOME=/usr/local
of course you should set it to the proper location where java is installed.
And now it works. Below is my simple script for helma auto startup on freebsd 6.1.
/usr/local/etc/rc.d/helma.sh
#!/bin/sh
#
#
echo "Starting Helma"
daemon '/helma/start.sh'
exit 0
On Oct 18, 2006, at 6:35 AM, Chris Zumbrunn wrote:
On Oct 18, 2006, at 12:22 , Julian Tree wrote:daemon su -m userName -c '/helma/start.sh'hmm, I tried that. Some how it doesn't seem to work. If i call it on the command line, then it works, but not when I put it in the /etc/rc.confI'm doing this in jails and I have one jail where I couldn't get it to work either. It just didn't do anything and failed quietly. I have no idea why.ChrisOn Oct 18, 2006, at 5:43 AM, Chris Zumbrunn wrote:On Oct 18, 2006, at 11:31 , Julian Tree wrote:Is anyone using Helma on FreeBSD? Anyone has a start up script onFreeBSD to share? I modified one of the linux start up script onthe mailing list, but it is not working on freebsd. I have tomanually restart helma everything system reboots.I just have entries like below in my /etc/rc.conf file and don't gothrough a startup script:daemon su -m userName -c '/path/to/helma/start.sh'Chris_______________________________________________Helma-user mailing listJulian Tree
_______________________________________________Helma-user mailing list_______________________________________________Helma-user mailing list
Julian Tree
_______________________________________________ Helma-user mailing list Helma-user <at> helma.org http://helma.org/mailman/listinfo/helma-user
RSS Feed