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
Web ServersLinux DistributionsLinux

Avatar of undefined
Last Comment
xoundboy

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
MushyPea

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
MushyPea

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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?
xoundboy

ASKER
thanks very much
agriesser

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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
xoundboy

ASKER
fair enough! I never considered that a directory could be called "..."!