<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I too am running mongrel on 6.1 but I have a few on 4.x as well. I
experienced problems with stopping mongrels UNTIL I switched the
pidfile location in the config file to point to <br>
<br>
/var/tmp/[site].pid<br>
<br>
If you are using a relative path to your pid files in the config file,
as I was when I was having problems, it wouldn't properly stop. I'm
not sure of your exact circumstances but you might try switching the
pidfile location. This made ALL the difference. I have NO problems
with processes that won't stop.<br>
<br>
Using the /var/tmp directory is regarded as "best practice". This is,
I believe, mentioned in the release announcement for the 1.0.1.1
pre-release. Search the archives and you should find it.<br>
<br>
matte<br>
<br>
Pat Maddox wrote:
<blockquote
cite="mid:810a540e0705040238p51e3f194jc46cbcddf9107c8b@mail.gmail.com"
type="cite">
<pre wrap="">On 5/4/07, Pat Maddox <a class="moz-txt-link-rfc2396E" href="mailto:pergesu@gmail.com"><pergesu@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm running FreeBSD 6.1 and installed the 1.0.1.1 mongrel_cluster
prerelease. I had a problem with the mongrels not stopping, and it
turns out it's because ps is reporting my processes as just
[ruby18]
instead of someting more like "mongrel_rails start -d ......."
Not sure why it's doing that, but it is. Any ideas?
For the time being I just changed line 165 of init.rb to read
pid = ps_output =~ /mongrel_rails|ruby18/ ? pid : nil
and that's working fine.
Pat
</pre>
</blockquote>
<pre wrap=""><!---->
I've got two sets of mongrels running now, one running a staging
environment and the other production.
[twist@jack ~/twist/shared/log]$ ps ax | grep ruby
88908 ?? S 0:01.96 [ruby18]
88911 ?? S 0:02.15 [ruby18]
88914 ?? S 0:02.14 [ruby18]
89021 ?? S 0:01.95 /usr/local/bin/ruby18 /bin/mongrel_rails
start -d -e production -c
89026 ?? S 0:01.95 /usr/local/bin/ruby18 /bin/mongrel_rails
start -d -e production -c
89029 ?? S 0:01.95 /usr/local/bin/ruby18 /bin/mongrel_rails
start -d -e production -c
The [ruby18] processes are all staging mongrels. Any clue as to why
they wouldn't show the full command?
Pat
_______________________________________________
Mongrel-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org</a>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/mongrel-users">http://rubyforge.org/mailman/listinfo/mongrel-users</a>
</pre>
</blockquote>
<br>
</body>
</html>