[Helma-user] helma startup script on FreeBSD

Julian Tree julian.tree at gmail.com
Sat Nov 11 21:53:48 CET 2006


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.conf
>
> I'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.
>
> Chris
>
>
>> On 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 on
>>>> FreeBSD to share?   I modified  one of the linux start up script on
>>>> the mailing list, but it is not working on freebsd.  I have to
>>>> manually restart helma everything system reboots.
>>>
>>> I just have entries like below in my /etc/rc.conf file and don't go
>>> through a startup script:
>>>
>>> daemon su -m userName -c '/path/to/helma/start.sh'
>>>
>>> Chris
>>>
>>> _______________________________________________
>>> Helma-user mailing list
>>> Helma-user at helma.org
>>> http://helma.org/mailman/listinfo/helma-user
>>
>> Julian Tree
>>
>>
>> _______________________________________________
>> Helma-user mailing list
>> Helma-user at helma.org
>> http://helma.org/mailman/listinfo/helma-user
>
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user

Julian Tree


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20061111/48587838/attachment.html 


More information about the Helma-user mailing list