Public bug reported:

# lsb_release -rd
Description:    Ubuntu 10.04.3 LTS
Release:        10.04

# apt-cache policy postgresql-9.0
postgresql-9.0:
  Installed: 9.0.4-1~lucid1
  Candidate: 9.0.5-1~lucid
  Version table:
     9.0.5-1~lucid 0
        500 http://ppa.launchpad.net/pitti/postgresql/ubuntu/ lucid/main 
Packages
 *** 9.0.4-1~lucid1 0
        100 /var/lib/dpkg/status

Error description:
Unable to stop postgresql service after trying to upgrade to postgresql-9.05 
from 9.04 (package upgrade failed)


# service postgresql stop
 * Stopping PostgreSQL 9.0 database server
 * Error: Could not open /proc/714/comm


Problem seems to lie in /usr/share/postgresql-common/PgCommon.pm:532
  if (open PS, "/proc/$pid/comm") {

as  'comm' doesn't exist in /proc/$pid
changed it to: 

if (open PS, "/proc/$pid/cmdline") {

which solves the problem.

** Affects: postgresql-common (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: pgcommon.pm

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/870379

Title:
  postgresql service stop fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/870379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to