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
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
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
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
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
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
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)
>
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
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 >>
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
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
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
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/
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.
>
>
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
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
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
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.
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
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
20 matches
Mail list logo