Re: startup / shutdown script (rc.d)

2007-07-08 Thread gmoniey
to those interested, I finally solved this problem, it turns out that the path wasnt correctly set for /usr/local/bin, and adding this line fixed it PATH=/usr/local/bin:$PATH -- View this message in context: http://www.nabble.com/startup---shutdown-script-%28rc.d%29-tf3848895.html#a11496394 Se

Re: startup / shutdown script (rc.d)

2007-06-07 Thread gmoniey
Jerry McAllister-2 wrote: > > Just as a test, I made the following sample script and named it chkrc.sh > and put it in /usr/local/etc/rc.d with execute permission. > It works just fine running from command line or as part of boot > or shutdown.You might try it as proof of concept and go f

Re: startup / shutdown script (rc.d)

2007-06-06 Thread Jerry McAllister
On Tue, Jun 05, 2007 at 11:00:07PM -0700, gmoniey wrote: > > as my luck would have it...this didn't work...i used your script...test it by > running ./rtest start & ./rtest stop and everything worked fine (note: i > changed the name from rails to rtest as rails is an actual command)... > > but whe

Re: startup / shutdown script (rc.d)

2007-06-05 Thread gmoniey
as my luck would have it...this didn't work...i used your script...test it by running ./rtest start & ./rtest stop and everything worked fine (note: i changed the name from rails to rtest as rails is an actual command)... but when i rebooted nothing happened. I had the output dump to file and the

Re: startup / shutdown script (rc.d)

2007-06-05 Thread Jerry McAllister
On Tue, Jun 05, 2007 at 09:54:14AM -0700, gmoniey wrote: > > thanks guys...i will try the new script tonight (unfortunately i cant work on > this during the day...) > > also, Jerry...the line: > > '/usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file' > > is only the second half of

Re: startup / shutdown script (rc.d)

2007-06-05 Thread gmoniey
thanks guys...i will try the new script tonight (unfortunately i cant work on this during the day...) also, Jerry...the line: '/usr/local/www/app/config/mongrel_cluster.yml >> /tmp/test.file' is only the second half of the mongrel_rails line (i think the forum just formatted it to come out to

Re: startup / shutdown script (rc.d)

2007-06-05 Thread Jerry McAllister
On Mon, Jun 04, 2007 at 10:52:43PM -0700, gmoniey wrote: > > thanks for the ideas, i tried both of your suggestions...i manually ran the > rails.sh file, and everything worked as expected...so i dumped the output to > file...my .sh file looks as such: > > #!/bin/sh > case "$1" in > start) >

Re: startup / shutdown script (rc.d)

2007-06-05 Thread Mikhail Goriachev
gmoniey wrote: thanks for the ideas, i tried both of your suggestions...i manually ran the rails.sh file, and everything worked as expected...so i dumped the output to file...my .sh file looks as such: [ trim ] the weird part is that the Rails found stop never printed...and im not sure why th

Re: startup / shutdown script (rc.d)

2007-06-04 Thread gmoniey
thanks for the ideas, i tried both of your suggestions...i manually ran the rails.sh file, and everything worked as expected...so i dumped the output to file...my .sh file looks as such: #!/bin/sh case "$1" in start) echo "RAILS found start" >> /tmp/test.file kldload accf_http >>

Re: startup / shutdown script (rc.d)

2007-06-04 Thread Jerry McAllister
On Tue, Jun 05, 2007 at 03:12:24AM +0100, RW wrote: > On Mon, 4 Jun 2007 09:55:26 -0700 (PDT) > gmoniey <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > so i tried the script you mentioned, and it doesnt seem as if it is > > being called on startup. Here is my script (rails.sh): > >... > > Whil

Re: startup / shutdown script (rc.d)

2007-06-04 Thread RW
On Mon, 4 Jun 2007 09:55:26 -0700 (PDT) gmoniey <[EMAIL PROTECTED]> wrote: > > Hi, > > so i tried the script you mentioned, and it doesnt seem as if it is > being called on startup. Here is my script (rails.sh): >... > While looking through the other files in the rc.d directory, I > noticed that

Re: startup / shutdown script (rc.d)

2007-06-04 Thread Jerry McAllister
On Mon, Jun 04, 2007 at 09:55:26AM -0700, gmoniey wrote: > > Hi, > > so i tried the script you mentioned, and it doesnt seem as if it is being > called on startup. Here is my script (rails.sh): > > #!/bin/sh > case "$1" in > start) > kldload accf_http > mongrel_rails cluster::st

Re: startup / shutdown script (rc.d)

2007-06-04 Thread gmoniey
Hi, so i tried the script you mentioned, and it doesnt seem as if it is being called on startup. Here is my script (rails.sh): #!/bin/sh case "$1" in start) kldload accf_http mongrel_rails cluster::start -C /usr/local/www/app/config/mongrel_cluster.yml /usr/local/www/app/

Re: startup / shutdown script (rc.d)

2007-06-01 Thread gmoniey
thanks to both of youi will give those examples a shot tonight...thanks again! gmoniey wrote: > > Hi Noberto, > > I actually looked at the apache one, and it seemed so complicated, there > were 2 files for it, one of which was relatively short and the other was > significantly long. > >

Re: startup / shutdown script (rc.d)

2007-06-01 Thread Jerry McAllister
On Thu, May 31, 2007 at 09:05:17PM -0700, gmoniey wrote: > > Hi Noberto, > > I actually looked at the apache one, and it seemed so complicated, there > were 2 files for it, one of which was relatively short and the other was > significantly long. > > Now dont get me wrong, they aren't beyond co

Re: startup / shutdown script (rc.d)

2007-06-01 Thread RW
On Thu, 31 May 2007 14:06:45 -0700 (PDT) gmoniey <[EMAIL PROTECTED]> wrote: > > Hi, > > I was wondering if there is a simple way to create 1 script that will > be called during startup and shutdown. Basically, I am looking for > something like this: > > if startup >run command 1 with params

Re: startup / shutdown script (rc.d)

2007-05-31 Thread Norberto Meijome
On Thu, 31 May 2007 21:05:17 -0700 (PDT) gmoniey <[EMAIL PROTECTED]> wrote: > I actually looked at the apache one, and it seemed so complicated, there > were 2 files for it, one of which was relatively short and the other was > significantly long. > > Now dont get me wrong, they aren't beyond com

Re: startup / shutdown script (rc.d)

2007-05-31 Thread gmoniey
Hi Noberto, I actually looked at the apache one, and it seemed so complicated, there were 2 files for it, one of which was relatively short and the other was significantly long. Now dont get me wrong, they aren't beyond comprehension, but i simply dont have the time right now to figure them out.

Re: startup / shutdown script (rc.d)

2007-05-31 Thread Norberto Meijome
On Thu, 31 May 2007 14:06:45 -0700 (PDT) gmoniey <[EMAIL PROTECTED]> wrote: > I was wondering if there is a simple way to create 1 script that will be > called during startup and shutdown. Basically, I am looking for something > like this: the easiest way (for me) is to grab the rc script of anyt

Re: startup / shutdown script (rc.d)

2007-05-31 Thread Duane Hill
On Thu, 31 May 2007, gmoniey wrote: Hi, I was wondering if there is a simple way to create 1 script that will be called during startup and shutdown. Basically, I am looking for something like this: if startup run command 1 with params run command 2 with params run command 3 with params