Josh K. wrote:
i have an unbuntu server that i installed rails on using the free
peepcode screencast on deprec.
all is well unless the computer restarts. none of the apps come up on
their own, and if i try to restart them with capistrano, it tells me
that the old mongrel pids are still there and it cannot start.
right now i am manually having to go to each app and run rake
tmp:pids:clear and then restart the mongrel_cluster.
how can i get capistrano to clear these automatically, and what are my
options for starting apps when the server is rebooted and keeping them
I imagine you have some scripts in /etc/init.d to bring the mongrels up?
By restart do you mean “Crash” (no shutdown invoked), or an ordinary
reboot (shutdown invoked)?
I have the problem for the “crash” case, with scripts in /etc/init.d to
bring up the mongrels. They do not get started, if the pid files are
Two possibilities mentioned on the web:
eureka: awesome. so only remaining thing is setup a rc.d startup file
that, when your machine reboots, finds .pid files and removes them.
01:56:31 zedas eureka: then you’re all set
there is mention of “stale pid files” which might allow a “proper
(This problem might be something for the mongrel mailing list.)