Mantis - Resin
Viewing Issue Advanced Details
4124 minor always 07-14-10 17:10 01-19-11 12:22
ferg  
ferg  
normal  
closed  
fixed  
none    
none 4.0.15  
0004124: MacOS-X Launchd
(rep by Rick Mann)
I know we've discussed this a bit in the past, but it seems that Resin is ever-evolving on the subject.

Is there guidance on the right way to set up Resin as a Mac OS X LaunchDaemon? I'm currently launching it like this:

$ /bin/launchctl submit -l com.caucho.resin -p /System/Library/Frameworks/JavaVM.framework/Home/bin/java -o /Users/rmann/Desktop/stdout.log -e /Users/rmann/Desktop/stderr.log -- /System/Library/Frameworks/JavaVM.framework/Home/bin/java -server -d64 -Djava.awt.headless=true -ea -esa -Dfile.encoding=utf-8 -jar /Library/Resin/Current/lib/resin.jar -verbose -root-directory /Library/Resin/Root -conf /Library/Resin/Resin.xml console


But when I try to stop it with

$ launchctl stop com.caucho.resin

It stops and restarts. I'm not sure if that's launchd restarting it, or if resin's watchdog is somehow getting involved. But I (think I) just want to run resin without the watchdog (which means a lot of config has to be supplied on the command line/Launchd plist).

Notes
(0004974)
ferg   
01-19-11 12:22   
Added "watchdog" to start the watchdog from LaunchD on MacOS-X