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 31

Search This Site

 
This is an exact search only

About This Site

 
I live west of Boston and used to work at Adobe with ColdFusion and Flex, specializing in Unix & Linux. I recently graduated from CDIA in Pro Digital Photography. Curious about my banner image?

More about me

Recent Entries

 
Christmas Eve Service makes F..
How To Filter by File Type in..
Perspective on ColdFusion's B..
Power Mac G5: The lights are ..
My Application to CDIABU in R..

Recent Comments

 
Posted By Yvonne:
Clear video taken! I was looking for such a video through Google & it led me to yours. Wanted to show to my students through a video clip, the whol ...

Posted By Andy Allan:
Fantastic work Steve.

Posted By charlie arehart:
Oh wow, awesome to hear that the relative quiet was an imposed one, and that the gag order has been lifted. Now I'm really excited to hear what may co ...

recently played

 
Snap Judgments
by WNYC, New York Public Radio
on On The Media
On The Media, WNYC, New York Public Radio

now playing, a plug-in for itunes

Categories

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

Blogs I Read

 
Scrum Sucks
Ben Forta
Ray Camden
Kinky Solutions
Gary Gilbert
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