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

Ubuntu Foundations Team Bug Bot 1245604 at bugs.launchpad.net
Fri Oct 9 12:26:03 UTC 2015


The attachment "debdiff for wily and upstream" seems to be a debdiff.
The ubuntu-sponsors team has been subscribed to the bug report so that
they can review and hopefully sponsor the debdiff.  If the attachment
isn't a patch, please remove the "patch" flag from the attachment,
remove the "patch" tag, and if you are member of the ~ubuntu-sponsors,
unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by
~brian-murray, for any issue please contact him.]

** Tags added: patch

-- 
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:
  Triaged
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