On Sunday, January 19, 2003, at 11:51 PM, Sean A Corfield wrote:

>> I'm sure you could install JRun as a daemon, but I'm not
>> exactly sure why you would want to.  It should be easy enough to write
>> a
>> small startup script for it that you can launch from the finder.
>
> First, you need a script that starts JRun 'quietly' - something like:
>
>       #!/bin/sh
>       nohup /Applications/JRun4/bin/jrun start cfmx1 > /dev/null &
>
> (I'm going to explain this here - use the Unix man command to figure
> some of this out and get a Beginners Book on Unix... You will need to
> learn more about Unix to take advantage of this!)
>
> Then have this script run at system startup (you need to learn a fair
> bit about Unix to modify the /etc/rc* scripts...)
>

On the Mac OS X breed of Unix, AFAIK, /Library/Startupitems is the  
proper place for the startup script.  This also requires a  
StartupParameters.plist file for proper execution.

It gets a little involved, because you must (potentially) co-exist with  
other Startup scripts.  And you may need to specify dependencies on  
other scripts or system services, to assure that when you attempt to  
start CFMX/JRun, that any necessary services are already started.

The Apple Developer Center has several articles on this subject -- here  
is one:

http://www.opensource.apple.com/projects/documentation/howto/html/ 
SystemStarter_HOWTO.html

Dick

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to