severity 600820 normal
tag 600820 moreinfo
thanks

Hello Oliver,

Oliver Schade [2010-10-20 12:59 +0200]:
> Severity: grave

Downgrading. This clearly doesn't break stuff for everyone, it's
merely a corner case.

> When attempting to stop a non-existent or vanished cluster resource
> (like unmounted drbd), the new init script returns exit code 1
> instead of 0, which would be the LSB-compliant behavior.

If there are no clusters, the init script does return 0:

$ pg_lsclusters 
Version Cluster   Port Status Owner    Data directory                     Log 
file
0 mar...@donald:~
$ sudo /etc/init.d/postgresql stop; echo $?
0

So do you mean it fails with nonzero if you remove the data directory
while PostgreSQL is running? Then I don't see how the scripts consider
any PostgreSQL operation "successful", and they should fail.

Can you please be more specific about the situation? How does your
setup look like? pg_lsclusters and init script output?

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

Attachment: signature.asc
Description: Digital signature

Reply via email to