Steven Erat's Blog
 
 
Viewing By Entry
 
 

TalkingTree  Problems with configuring CF801 on Mac for System Startup

 

Two problems with configuring ColdFusion 8.01 on Mac OS X for startup on system boot when using the the utility {cf_root}/bin/cf-init.sh. The first issue is that cf-init.sh cannot be used again to configure CF for startup on boot after the cf-init.sh script is used to unconfigure the service. The second issue is that for Multiserver configuration the script cf-init.sh cannot be used to unconfigure CF as a startup service and the items under /Library/StartupItems/ColdFusion8Multi must be removed manually. The ColdFusion Engineering team is actively seeking to correct these issues, but I'm posting for your convenience in case you run into this beforehand.

Issue 1 logged as ColdFusion bug 73548
On Mac, running cf-init.sh to install system startup script cannot be done a second time after running cf-init.sh uninstall.

The cf-init.sh function install_mac() permanently moves the file {cf_root}/bin/cf-standalone-startup to /Library/StartupItems/ under the new name ColdFusion8 as shown here:

mv -f $CF_DIR/bin/cf-standalone-startup /Library/StartupItems/ColdFusion8/ColdFusion8

Then the uninstall_mac() function in cf-init.sh permanently removes that file ColdFusion8 as shown here:

rm -rf /Library/StartupItems/ColdFusion8

There are no longer any copies of {cf_root}/bin/cf-standalone-startup under any name on the system, so another attempt to configure ColdFusion to start on System Boot cannot be performed.

More details:

1) Install CF801 on Mac, but do NOT choose option to start on system boot at this time
2) Run cf-init.sh install, then cf-init.sh uninstall, then again cf-init.sh install
3) Observe second usage of cf-init.sh fails


-----------------------------
* Initial directory listing after installing without option to start on boot
* Notice StartupParameters.plist and cf-standalone-startup are present
-----------------------------

my-powerbook:/opt/ColdFusion8/bin cfqauser$ ls -l
total 4296
-rwxr-xr-x 1 cfqauser admin 504 Nov 6 10:13 SMSClient.sh
-rwxrwxr-x 1 cfqauser admin 260 Jan 19 2008 StartupParameters.plist
-rwxr-xr-x 1 cfqauser admin 7241 Nov 6 10:13 cf-init.sh
-rwxrwxr-x 1 cfqauser admin 409 Nov 6 10:13 cf-standalone-startup
-rwxr-xr-x 1 cfqauser admin 6671 Nov 6 10:13 cfcompile.sh
-rwxr-xr-x 1 cfqauser admin 1501420 Jan 19 2008 cfencode.exe
-rwxr-xr-x 1 cfqauser admin 110264 Jan 19 2008 cfencode.linux
-rwxr-xr-x 1 cfqauser admin 527624 Jan 19 2008 cfencode.solaris
-rwxr-xr-x 1 cfqauser admin 252 Nov 6 10:13 cfinfo
-rwxr-xr-x 1 cfqauser admin 414 Nov 6 10:13 cfscan.sh
-rwxr-xr-x 1 cfqauser admin 265 Nov 6 10:13 cfstat
-rwxr-xr-x 1 cfqauser admin 7025 Nov 6 10:13 coldfusion
drwxr-xr-x 7 cfqauser admin 238 Nov 6 10:13 connectors
-rwxr-xr-x 1 cfqauser admin 860 Jan 23 2008 findjava.sh
lrwxr-xr-x 1 cfqauser admin 39 Nov 6 10:13 jvm.config -> /opt/ColdFusion8/runtime/bin/jvm.config


-----------------------------
* Run cf-init.sh to install startup service
* Notice cf-standalone-startup is not in bin/ directory listing
-----------------------------

my-powerbook:/opt/ColdFusion8/bin cfqauser$ sudo ./cf-init.sh install
Password:
Creating the Coldfusion 8 start script /Library/StartupItems/ColdFusion8/ColdFusion8
Install complete
my-powerbook:/opt/ColdFusion8/bin cfqauser$ ls /Library/StartupItems/ColdFusion8/
ColdFusion8 StartupParameters.plist
my-powerbook:/opt/ColdFusion8/bin cfqauser$ ls -l
total 4288
-rwxr-xr-x 1 cfqauser admin 504 Nov 6 10:13 SMSClient.sh
-rwxrwxr-x 1 cfqauser admin 260 Jan 19 2008 StartupParameters.plist
-rwxr-xr-x 1 cfqauser admin 7241 Nov 6 10:13 cf-init.sh
-rwxr-xr-x 1 cfqauser admin 6671 Nov 6 10:13 cfcompile.sh
-rwxr-xr-x 1 cfqauser admin 1501420 Jan 19 2008 cfencode.exe
-rwxr-xr-x 1 cfqauser admin 110264 Jan 19 2008 cfencode.linux
-rwxr-xr-x 1 cfqauser admin 527624 Jan 19 2008 cfencode.solaris
-rwxr-xr-x 1 cfqauser admin 252 Nov 6 10:13 cfinfo
-rwxr-xr-x 1 cfqauser admin 414 Nov 6 10:13 cfscan.sh
-rwxr-xr-x 1 cfqauser admin 265 Nov 6 10:13 cfstat
-rwxr-xr-x 1 cfqauser admin 7025 Nov 6 10:13 coldfusion
drwxr-xr-x 7 cfqauser admin 238 Nov 6 10:13 connectors
-rwxr-xr-x 1 cfqauser admin 860 Jan 23 2008 findjava.sh
lrwxr-xr-x 1 cfqauser admin 39 Nov 6 10:13 jvm.config -> /opt/ColdFusion8/runtime/bin/jvm.config

-----------------------------
* Uninstall startup service with cf-init.sh
-----------------------------

my-powerbook:/opt/ColdFusion8/bin cfqauser$ sudo ./cf-init.sh uninstall
Uninstall complete
my-powerbook:/opt/ColdFusion8/bin cfqauser$ ls /Library/StartupItems/ColdFusion8/
ls: /Library/StartupItems/ColdFusion8/: No such file or directory

-----------------------------
* Again, run cf-init.sh to re-install startup service
* Notice failure on mv cf-standalone-startup to /Library/StartupItems
-----------------------------

my-powerbook:/opt/ColdFusion8/bin cfqauser$ sudo ./cf-init.sh install
Creating the Coldfusion 8 start script /Library/StartupItems/ColdFusion8/ColdFusion8
mv: rename /opt/ColdFusion8/bin/cf-standalone-startup to /Library/StartupItems/ColdFusion8/ColdFusion8: No such file or directory
Install complete
my-powerbook:/opt/ColdFusion8/bin cfqauser$ ls /Library/StartupItems/ColdFusion8/
StartupParameters.plist
my-powerbook:/opt/ColdFusion8/bin cfqauser$


Issue 2 logged as bug ColdFusion 73178

The cf-init.sh function for install_mac() has a section for server configuration and a section for multiserver config, but the uninstall_mac () function only has a Server Config section looking for /Library/StartupItems/ColdFusion8, but not a Multiserver section to remove /Library/StartupItems/ColdFusion8Multi.

Notice that there is an option to configure CF for system startup with "Standalone" (a.k.a. Server Config) and an option for Multiserver Config.

install_mac() {

if [ -f /Library/StartupItems/ColdFusion8 ]; then
echo "Coldfusion 8 appears to already be set up to start on boot"
exit 2
fi

if [ "$MULTI_SERVER" = "false" ]; then
echo "Creating the Coldfusion 8 start script /Library/StartupItems/ColdFusion8/ColdFusion8"
mkdir /Library/StartupItems/ColdFusion8
mv -f $CF_DIR/bin/cf-standalone-startup /Library/StartupItems/ColdFusion8/ColdFusion8
cp -f $CF_DIR/bin/StartupParameters.plist /Library/StartupItems/ColdFusion8/StartupParameters.plist
chmod 544 /Library/StartupItems/ColdFusion8/*
chown root:wheel /Library/StartupItems/ColdFusion8/*
else
echo "Creating the Coldfusion 8 Multi-server start script /Library/StartupItems/ColdFusion8Multi/ColdFusion8Multi"
mkdir /Library/StartupItems/ColdFusion8Multi
mv -f $CF_DIR/bin/cf-multi-startup /Library/StartupItems/ColdFusion8Multi/ColdFusion8Multi
cp -f $CF_DIR/bin/StartupParameters.plist /Library/StartupItems/ColdFusion8Multi/StartupParameters.plist
chmod 544 /Library/StartupItems/ColdFusion8Multi/*
chown root:wheel /Library/StartupItems/ColdFusion8Multi/*
fi
echo "Install complete"
}


Notice that there is no option to remove ColdFusion8Multi from /Library/StartupItems

uninstall_mac() {

if [ -f /Library/StartupItems/ColdFusion8 ]; then
echo "Coldfusion 8 does not appear to be added to your init system"
exit 2
fi

rm -rf /Library/StartupItems/ColdFusion8

echo "Uninstall complete"
}

 


Comments

Is that a powerbook your using? PPC or Intel?
I've just gone through hell with trying to run CF8.x on PPC...


I'm using PPC. In principle, these problems should occur regardless of architecture. Otherwise, the product should run normally for that platform since PPC is permitted by the CF8 System Requirements.


ahh right.

Are you running Tiger or Leopard? I should have specified that I've had hell with Os X 10.5.x with CF8. and right this problems doesn't matter with arch, but it just got my eye that your running a powerbook, as am I. I'd say the majority of people (developers) have updated to macbooks...

cheers


 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and work as a Software Engineer with ColdFusion and Flex, specializing in Linux. Recently I graduated in Professional Digital Photography from CDIA.
More about me

Recent Entries

 
Recent Tweets for Fri Oct 2, ..
Recent Tweets for Fri Oct 2, ..

Recent Comments

 
Posted By Jonas:
Hey, appreciate the tutorial. I think some more expensive dSLRs allow autobracketing that yields up to 5 frames. My hands tremble a lot, for some u ...

Posted By Becky the Pregnant:
I am a pregnant woman...I am in love with their salad dressing!!! In fact since my boyfriend won't travel from Lunenburg to Parkhill to get the most s ...

Posted By Violet:
Wow,you don't even imagine how glad I am that I found this article. The thing is that tomorrow I'm gonna deal with this problem. I postponed it for se ...

recently played

 
Refugee
by Tom Petty & The Heartbreakers
on Greatest Hits
Greatest Hits, Tom Petty & The Heartbreakers

now playing, a plug-in for itunes

Categories

 
RSS Adobe (33)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (423)
RSS Computer Technology (51)
RSS Events (25)
RSS Flash (3)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photography (110)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Consumed By Feed-Squirrel.com
Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2009 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer