Link to home
Start Free TrialLog in
Avatar of xoundboy
xoundboy

asked on

can't get coldfusion 8 startup script to work on Ubuntu

I've successfully instlled CF8 on Ubuntu and now I'm tying to add a startup script to make it auto start whn the server is restarted.

I followed the instructions in Matt woodwards blog on this subject to the t, changing  path/ file names where appropriate and have double and triple checked it.

http://www.mattwoodward.com/blog/index.cfm?event=showEntry&entryID=01933E8F-9742-D8D7-F3A2D78A94380F87

the actual code in the startup script is attached

When I list out the contents of the rc2.d folder I get the coldfusion links appearing red with three dots at the start of the path when all the other sym-links are in blue with two dots. (See attached screenshot) What does this mean? why doesn't the coldfusion server start on hardware re-boot? any ideas?


#!/bin/bash
 
case "$1" in
start)
/opt/coldfusion8/bin/coldfusion start
;;
stop)
/opt/coldfusion8/bin/coldfusion stop
;;
esac

Open in new window

cf-startup-script-ss.png
ASKER CERTIFIED SOLUTION
Avatar of MushyPea
MushyPea

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoundboy
xoundboy

ASKER

I deleted them and set them up again with your commands above and it now works, thanks

so what was the difference? Could it be that when I originally added the symlinks I had three dots instead of two?
thanks very much
Yes, that could be the reason. Only .. is treated as a special filename inside a directory, ... is a valid name for a directory therefore your symlink pointed to a non-existant directory.
fair enough! I never considered that a directory could be called "..."!