← Back to team overview

desktop-packages team mailing list archive

[Bug 1498274] [NEW] init.d script doesn't respect `version` argument

 

Public bug reported:

Release: Ubuntu 15.04

It seems that the current version of the /etc/init.d/postgresql script
doesn't respect the `version` flag.  Help text states:

    Usage: /etc/init.d/postgresql {start|stop|restart|reload|force-
reload|status} [version ..]

But with 2 installations and called as follows:

    /etc/init.d/postgresql start 9.4

or

   service postgresql start 9.4

Both 9.4 and 9.3 are started, I expected just 9.4 to start.


Package info:
# apt-cache policy postgresql-common
postgresql-common:
  Installed: 169.pgdg14.04+1
  Candidate: 169.pgdg70+1
  Version table:
     169.pgdg70+1 0
        500 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main amd64 Packages
 *** 169.pgdg14.04+1 0
        100 /var/lib/dpkg/status
     166bzr2 0
        500 http://mirror.hetzner.de/ubuntu/packages/ vivid/main amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages

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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-common in Ubuntu.
https://bugs.launchpad.net/bugs/1498274

Title:
  init.d script doesn't respect `version` argument

Status in postgresql-common package in Ubuntu:
  New

Bug description:
  Release: Ubuntu 15.04

  It seems that the current version of the /etc/init.d/postgresql script
  doesn't respect the `version` flag.  Help text states:

      Usage: /etc/init.d/postgresql {start|stop|restart|reload|force-
  reload|status} [version ..]

  But with 2 installations and called as follows:

      /etc/init.d/postgresql start 9.4

  or

     service postgresql start 9.4

  Both 9.4 and 9.3 are started, I expected just 9.4 to start.

  
  Package info:
  # apt-cache policy postgresql-common
  postgresql-common:
    Installed: 169.pgdg14.04+1
    Candidate: 169.pgdg70+1
    Version table:
       169.pgdg70+1 0
          500 http://apt.postgresql.org/pub/repos/apt/ wheezy-pgdg/main amd64 Packages
   *** 169.pgdg14.04+1 0
          100 /var/lib/dpkg/status
       166bzr2 0
          500 http://mirror.hetzner.de/ubuntu/packages/ vivid/main amd64 Packages
          500 http://de.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages

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


Follow ups