|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
running a script to stat CF 8?Hi,
is there a way to write a system script to start CF 8? Other people are using the machine at school, but want to access the CF site and not excited about using terminal. I think that it is easy, but that is maybe just me. step (1) cd opt/coldfusion8/bin step (2) sudo ./coldfusion start step (3) enter admin password I am using Ubuntu 8.04 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4450 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: running a script to stat CF 8?John,
I run Ubuntu 8.04 an have a very basic CF8 install on it. What I did was have CF start during boot by adding a file to /etc/init.d/ called coldfuison. This is the contents of that file: #!/bin/sh # start the cf server case "$1" in 'start') /opt/coldfusion8/bin/coldfusion -start ;; 'stop') /opt/coldfusion8/bin/coldfusion -stop ;; *) echo "Usage: $0 { start | stop }" ;; esac exit 0 If you decide to use it, make sure that the two paths are correct for your install. This then runs during boot up so that the CF server will be available to any and everyone, even before they log in. Also make sure the permissions are correct on that file, or it won't run. i've got root:root and 755. Doing it this way, you won't be prompted for a password ever and you won't have to add the other people's logins to the sudoers group. You could also enable CF for each user on login by adding it to their "startup" que. http://www.howtogeek.com/howto/ubuntu/how-to-add-a-program-to-the-ubuntu-startup-list-after-login/ I don't have a GUI on my server, so I couldn't test that to see if it actually works - sorry! -Jeffrey Meagher > Hi, > is there a way to write a system script to start CF 8? Other people > are using the machine at school, but want to access the CF site and > not excited about using terminal. I think that it is easy, but that is > maybe just me. > > step (1) cd opt/coldfusion8/bin > step (2) sudo ./coldfusion start > step (3) enter admin password > > I am using Ubuntu 8.04 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4451 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: running a script to stat CF 8?Hi Jefferey,
Thanks so much for your help! This looks like it will work out great:) I am a new user using Ubuntu at school, as I usually use the Mac OS X at home. So far I really like it. The current machine is used by multiple people(students, teachers, me), and this will come in handy. I just put the file colsfusion in /etc/init.d/ really just copied and paste what you have here. This will start the CF server on system init? yep the install names are the same /opt/coldfusion8/bin/coldfusion Thanks so much for your help:) John On Sep 14, 2008, at 5:19 AM, Jeff Meagher wrote: > John, > > I run Ubuntu 8.04 an have a very basic CF8 install on it. What I > did was have CF start during boot by adding a file to /etc/init.d/ > called coldfuison. This is the contents of that file: > > #!/bin/sh > # start the cf server > > case "$1" in > 'start') > /opt/coldfusion8/bin/coldfusion -start > ;; > 'stop') > /opt/coldfusion8/bin/coldfusion -stop > ;; > *) > echo "Usage: $0 { start | stop }" > ;; > esac > exit 0 > > > If you decide to use it, make sure that the two paths are correct > for your install. This then runs during boot up so that the CF > server will be available to any and everyone, even before they log > in. Also make sure the permissions are correct on that file, or it > won't run. i've got root:root and 755. Doing it this way, you > won't be prompted for a password ever and you won't have to add the > other people's logins to the sudoers group. > > You could also enable CF for each user on login by adding it to > their "startup" que. http://www.howtogeek.com/howto/ubuntu/how-to- > add-a-program-to-the-ubuntu-startup-list-after-login/ I don't have > a GUI on my server, so I couldn't test that to see if it actually > works - sorry! > > -Jeffrey Meagher > > >> Hi, >> is there a way to write a system script to start CF 8? Other people >> are using the machine at school, but want to access the CF site and >> not excited about using terminal. I think that it is easy, but >> that is >> maybe just me. >> >> step (1) cd opt/coldfusion8/bin >> step (2) sudo ./coldfusion start >> step (3) enter admin password >> >> I am using Ubuntu 8.04 >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4452 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
RE: running a script to stat CF 8?On Solaris/Linux/MacOSX systems use {cf_home}/bin/cf-init.sh to add or remove ColdFusion init scripts.
---- The cf-init.sh script will properly install the startup and kill scripts so that ColdFusion will start upon system startup. 1. Cd to coldfusion8/bin. 2. Run "cf-init.sh install" as root, or with sudo, to properly install the startup and kill scripts. 3. Run "cf-init.sh uninstall" as root, or with sudo, to remove the scripts. ---- -----Original Message----- From: John Barrett [mailto:barrjohnm@...] Sent: Saturday, September 13, 2008 10:15 PM To: CF-Linux Subject: running a script to stat CF 8? Hi, is there a way to write a system script to start CF 8? Other people are using the machine at school, but want to access the CF site and not excited about using terminal. I think that it is easy, but that is maybe just me. step (1) cd opt/coldfusion8/bin step (2) sudo ./coldfusion start step (3) enter admin password I am using Ubuntu 8.04 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4453 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
|
|
Re: running a script to stat CF 8?Hi Steven long time no hear, I hope your well:)
Thanks for the advice, I will try this when I get to school tonight. John On Sep 15, 2008, at 5:45 AM, Steven Erat wrote: > On Solaris/Linux/MacOSX systems use {cf_home}/bin/cf-init.sh to add > or remove ColdFusion init scripts. > > ---- > The cf-init.sh script will properly install the startup and kill > scripts so that ColdFusion will start upon system startup. > > 1. Cd to coldfusion8/bin. > 2. Run "cf-init.sh install" as root, or with sudo, to properly > install the startup and kill scripts. > 3. Run "cf-init.sh uninstall" as root, or with sudo, to remove > the scripts. > ---- > > -----Original Message----- > From: John Barrett [mailto:barrjohnm@...] > Sent: Saturday, September 13, 2008 10:15 PM > To: CF-Linux > Subject: running a script to stat CF 8? > > Hi, > is there a way to write a system script to start CF 8? Other people > are using the machine at school, but want to access the CF site and > not excited about using terminal. I think that it is easy, but that > is maybe just me. > > step (1) cd opt/coldfusion8/bin > step (2) sudo ./coldfusion start > step (3) enter admin password > > I am using Ubuntu 8.04 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Linux/message.cfm/messageid:4454 Subscription: http://www.houseoffusion.com/groups/CF-Linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14 |
| Free embeddable forum powered by Nabble | Forum Help |