LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs > drask
User Name
Password

Notices

Rating: 2 votes, 5.00 average.

Autostart coldfusion on boot in Ubuntu

Posted 04-22-2010 at 12:10 PM by drask

My current job requires that I work with Coldfusion 9. I have it set up to run on an Ubuntu 9.10 desktop with apache2. Everything installs pretty well (there is one dependency of libstdc++5 that is no longer supported by Ubuntu and must be downloaded from another repository like http://ftp.us.debian.org/debian/pool....6-18_i386.deb as detailed in http://www.howtoforge.com/installing...on-ubuntu-9.04) but the option to have Coldfusion startup when the machine boots does not appear to work with Ubuntu 9.10.

So I tried creating a symbolic link to /opt/coldfusion9/bin/coldfusion from /etc/init.d and running update-rc.d but it was complaining about the script missing an lsb header.

Here is the LSB information I added to the top of the /opt/coldfusion9/bin/coldfusion file (just below the #!/bin/sh)
### BEGIN INIT INFO
# Provides: coldfusion
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts Coldfusion 9 on system boot
# Description: Start Coldfusion 9 when the system boots
### END INIT INFO

This seems to be saying to start the coldfusion server any time the system is booted into multi-user mode (runlevels 2-5).

then I created the symbolic link
sudo ln -s /opt/coldfusion9/bin/coldfusion /etc/init.d/coldfusion

and ran update-rc.d
sudo update-rc.d coldfusion defaults

and that seems to be working. There must be other ways of doing this as well, because I don't think I did it this way last time.
Posted in Uncategorized
Views 2446 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration