[Bug 1245604] Re: "killall -u snmp" in a pre-install step kills any running snmpd

Launchpad Bug Tracker 1245604 at bugs.launchpad.net
Mon Oct 12 14:04:08 UTC 2015


This bug was fixed in the package net-snmp - 5.7.3+dfsg-1ubuntu2

---------------
net-snmp (5.7.3+dfsg-1ubuntu2) wily; urgency=medium

  * debian/snmp.preinst:
    It turns out that the original motivation why killall was added is gone.
    So we can just remove the killall introduced by Ubuntu LP #573391
    (Closes: #781257, LP: #1245604)

 -- Christian Ehrhardt <christian.ehrhardt at canonical.com>  Fri, 09 Oct
2015 13:18:25 +0200

** Changed in: net-snmp (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1245604

Title:
  "killall -u snmp" in a pre-install step kills any running snmpd

Status in net-snmp package in Ubuntu:
  Fix Released
Status in net-snmp package in Debian:
  New

Bug description:
  If I am running snmpd (which I was) and I install snmp (which I did),
  it kills snmpd due to a pre-install step of the snmp package that
  calls a 'killall -u snmp' :(

  Found the pre-install step here:

  user at host3:~$ cat  /var/lib/dpkg/info/snmp.preinst 
  #! /bin/sh

  set -e

  action="$1"

  killall -u snmp  2>/dev/null || true

  if [ "$action" = upgrade ]
  then
    if [ -L /usr/share/doc/snmp ]; then
      rm -f /usr/share/doc/snmp
    fi
    if [ -d /usr/doc/snmp ]; then
      rm -rf /usr/doc/snmp
    fi
  fi


  exit 0

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



More information about the Ubuntu-sponsors mailing list