ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  ColdFusion MX on Mac OS X, Part 3
Subject:   Starting JRun and CFMX at boot
Date:   2003-01-11 00:01:29
From:   dicklacara
There is an excellent tutorial on startup items at:


   http://www.osxfaq.com/Tutorials/LearningCenter/HowTo/Startup/index.ws


I use the following files in a folder named JRunCFMX


First, the startup shell script, also named JRunCFMX

#!/bin/sh
. /etc/rc.common
sudo ConsoleMessage "Starting JRun and CFMX"
cd /Applications/JRun4/bin
#Start the JRun JMC and CFMX Servers
./jrun -start admin cfmx1 > /dev/null

Next, the startup parameter list, named StartupParameters.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>Description</key>
<string>JRun Server and CFMX Server</string>
<key>Messages</key>
<dict>
<key>start</key>
<string>Starting JRunCFMX</string>
<key>stop</key>
<string>Stopping JRunCFMX</string>
</dict>
<key>OrderPreference</key>
<string>Last</string>
<key>Provides</key>
<array>
<string>JRunCFMX</string>
</array>
<key>Requires</key>
<array>
<string>Resolver</string>
</array>
<key>Uses</key>
<array>
<string>Network Time</string>
<string>NFS</string>
</array>
</dict>
</plist>

Finally, within the folder /Resources/English.lproj/ the file named Localizable.strings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>Starting JRunCFMX</key>
<string>Starting JRunCFMX</string>
<key>Stopping JRunCFMX</key>
<string>Stopping JRunCFMX</string>
<key>Restarting JRunCFMX</key>
<string>Restarting JRunCFMX</string>
</dict>
</plist>

Make sure to save all files with Unix carriage returns, and set the permissions as indicated in the article.


If you have serial numbers, they are entered in the JRun JMC or the CFMX Administrator.


Dick


1 to 3 of 3
  1. Starting JRun and CFMX at boot
    2003-09-24 14:59:08  anonymous2 [View]

  2. Starting JRun and CFMX at boot
    2003-01-13 12:15:31  lolajl [View]

    • Starting JRun and CFMX at boot
      2003-01-13 16:18:31  dicklacara [View]

      • Starting JRun and CFMX at boot
        2003-01-14 09:22:55  lolajl [View]

  3. Starting Tomcat and CFMX at boot?
    2003-01-11 13:21:01  jodeo [View]

    • Starting Tomcat and CFMX at boot?
      2003-01-12 10:52:27  dicklacara [View]

1 to 3 of 3