Package: postgresql
Version: 7.4.7-2
Severity: important

Maybe this is not one bug, but two:

1. For whatever reason, the postmaster.pid file is sometimes
   empty.  I did not yet find out, under which conditions this
   happens, but it happened more than one time.

2. Worse, if the file is empty, the stop and/or restart of
   postgresql fails:

   Stopping PostgreSQL database server:
   postmaster/usr/lib/postgresql/bin/pg_ctl: line 321: [: : integer expression
expected
   kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill
-l [sigspec]

   (the script hangs until ^C is pressed)

   You can easily reprocuce this behaviour by running postgresql,
   echo > /var/lib/postgres/data/postmaster.pid and
   /etc/init.d/postgresql stop

The stop/restart should definitively be robust against an empty
postmaster.pid file (and this file should not be empty anyway,
but it happens now and then).


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to