Autostart coldfusion on boot in Ubuntu
Posted 04-22-2010 at 12:10 PM by drask
Tags coldfusion ubuntu
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.
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.
Total Comments 0