Women in Technology

Hear us Roar



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

Full Threads Oldest First

Showing messages 1 through 6 of 6.

  • Starting JRun and CFMX at boot
    2003-09-24 14:59:08  anonymous2 [View]

    There's an unclosed <a> tag at the beginning of the article ... fix it, please! Makes copying & pasting quite a challenge from an otherwise powerfully helpful article. thanks
  • Starting JRun and CFMX at boot
    2003-01-13 12:15:31  lolajl [View]

    First, bear with me as I'm about to ask a beginner's question. I'm still feeling my way around Unix, especially when it comes to setting things in Terminal. I'd like to know how to change the permissions for Resources from "drwxrwxrwx" to "drwxr-xr-x" either via Terminal, or via Get Info. I know about chmod, but how does these permission correspond? I'm at work and my "OS X Unleashed" book,as well as my other Unix books, are at home.
    • Starting JRun and CFMX at boot
      2003-01-13 16:18:31  dicklacara [View]

      Each rwx triplet (owner, group, other) is represented by the binary bits 421

      r=4
      w=2
      x=1

      When you specify a charmod setting there is 1 digit for each triplet which is the sum of the bits in that triplet

      So, say the owner has Read and write privileges

      r=4
      w=2
      x=0

      The sum of the bits is 4+2+0 = 6, so the Owner Triplet is 6

      Now, lets say the group has read priveges and execute privileges:

      r=4
      w=0
      x=1

      or 4+0+1= 5. The second (group) triplet is 5.

      Finally, other users have execute only privileges:

      r=0
      w=0
      x=1

      or 0+0+1 = 1, the other triplet value is one

      so, you combine the values for the triplets for Owner, Group and other to give:

      chmod 651 .....

      Common values are:

      777 everybody has rwx

      755 Owner has rwx, everyone else has r-x

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

        Thanks!
  • Starting Tomcat and CFMX at boot?
    2003-01-11 13:21:01  jodeo [View]

    You knew I'd ask...

    How about starting Tomcat and CFMX at boot?
    (I know, I know -- install JRun... )