* [gentoo-user] postgresql 8.2.14 cannot stop
@ 2010-03-30 13:31 Xi Shen
2010-03-30 19:15 ` Alan McKinnon
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Xi Shen @ 2010-03-30 13:31 UTC (permalink / raw
To: gentoo-user, gentoo-china
hi,
my system is gentoo amd64, postgresql 8.2.14. the postgresql service
can start without any error; but when i try to stop it, it reports
failure. the process of postgresql are actually terminated. if i try
to stop the service again, i got
"start-stop-daemon: fopen `/var/lib/postgresql/data/postmaster.pid':
No such file or direc"
i will have to use zap to reset the service status. how to fix this?
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] postgresql 8.2.14 cannot stop
2010-03-30 13:31 [gentoo-user] postgresql 8.2.14 cannot stop Xi Shen
@ 2010-03-30 19:15 ` Alan McKinnon
2010-03-30 23:15 ` Peter Humphrey
2010-03-30 21:10 ` Florian Philipp
2010-03-30 22:58 ` Michael Higgins
2 siblings, 1 reply; 6+ messages in thread
From: Alan McKinnon @ 2010-03-30 19:15 UTC (permalink / raw
To: gentoo-user
On Tuesday 30 March 2010 15:31:50 Xi Shen wrote:
> hi,
>
> my system is gentoo amd64, postgresql 8.2.14. the postgresql service
> can start without any error; but when i try to stop it, it reports
> failure. the process of postgresql are actually terminated. if i try
> to stop the service again, i got
>
> "start-stop-daemon: fopen `/var/lib/postgresql/data/postmaster.pid':
> No such file or direc"
>
> i will have to use zap to reset the service status. how to fix this?
We don't need the error message from the second time you stop it. We know for
sure that will not work. We need the error from the first failure. Without
that, we can't help you.
Otherwise you are just asking how long is a piece of string? And we all know
what the correct answer to that is.
--
alan dot mckinnon at gmail dot com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] postgresql 8.2.14 cannot stop
2010-03-30 13:31 [gentoo-user] postgresql 8.2.14 cannot stop Xi Shen
2010-03-30 19:15 ` Alan McKinnon
@ 2010-03-30 21:10 ` Florian Philipp
2010-03-30 22:58 ` Michael Higgins
2 siblings, 0 replies; 6+ messages in thread
From: Florian Philipp @ 2010-03-30 21:10 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 877 bytes --]
Am 30.03.2010 15:31, schrieb Xi Shen:
> hi,
>
> my system is gentoo amd64, postgresql 8.2.14. the postgresql service
> can start without any error; but when i try to stop it, it reports
> failure. the process of postgresql are actually terminated. if i try
> to stop the service again, i got
>
> "start-stop-daemon: fopen `/var/lib/postgresql/data/postmaster.pid':
> No such file or direc"
>
> i will have to use zap to reset the service status. how to fix this?
>
>
I guess it is just a timeout issue. Take a look at the stop()-function
in /etc/init.d/postgresql. It calls
start-stop-daemon [...]
--retry -TERM/${WAIT_FOR_DISCONNECT}/-INT/${WAIT_FOR_CLEANUP}/-QUIT [...]
I have the same issue with a virtual server. At the moment, I just
ignore it. I guess it would be safer to increase the timeout somehow.
Hope this helps,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] postgresql 8.2.14 cannot stop
2010-03-30 13:31 [gentoo-user] postgresql 8.2.14 cannot stop Xi Shen
2010-03-30 19:15 ` Alan McKinnon
2010-03-30 21:10 ` Florian Philipp
@ 2010-03-30 22:58 ` Michael Higgins
2010-03-31 1:31 ` Xi Shen
2 siblings, 1 reply; 6+ messages in thread
From: Michael Higgins @ 2010-03-30 22:58 UTC (permalink / raw
To: gentoo-user
On Tue, 30 Mar 2010 21:31:50 +0800
Xi Shen <davidshen84@googlemail.com> wrote:
> hi,
>
> my system is gentoo amd64, postgresql 8.2.14. the postgresql service
> can start without any error; but when i try to stop it, it reports
> failure. the process of postgresql are actually terminated. if i try
> to stop the service again, i got
>
> "start-stop-daemon: fopen `/var/lib/postgresql/data/postmaster.pid':
> No such file or direc"
>
> i will have to use zap to reset the service status. how to fix this?
>
>
There are new start stop scripts for gentoo that work at
http://bugs.gentoo.org/show_bug.cgi?id=311047
Enjoy!
--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-31 2:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-30 13:31 [gentoo-user] postgresql 8.2.14 cannot stop Xi Shen
2010-03-30 19:15 ` Alan McKinnon
2010-03-30 23:15 ` Peter Humphrey
2010-03-30 21:10 ` Florian Philipp
2010-03-30 22:58 ` Michael Higgins
2010-03-31 1:31 ` Xi Shen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox