[Pkg-net-snmp-devel] Bug#746397: snmpd: Missing log_end_msg in /etc/init.d/snmpd

Uwe Storbeck uwe at ibr.ch
Tue Apr 29 16:45:43 UTC 2014

Package: snmpd
Severity: normal
Tags: patch

Dear Maintainer,

the start and stop messages from /etc/init.d/snmpd are garbled.
The final "ok" and the line feed is missing. The attached patch
adds the missing calls of log_end_msg so that the start script
works as expected, at least when the auto-start of the snmpd
service is enabled. It also fixes some minor issues in the start
and stop messages like duplicate colons and unnecessary spaces.

I don't know how Debian start scripts should behave when a
service is disabled, so I tried to not change the behavior when
the auto-start of snmpd is disabled.

As I am not very familiar with Debian start script conventions
better double check the changes before using them.



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (750, 'testing'), (650, 'unstable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages snmpd depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.52
ii  libc6                  2.18-4
ii  libsnmp-base 
ii  libsnmp30    
ii  lsb-base               4.1+Debian12

snmpd recommends no packages.

Versions of packages snmpd suggests:
pn  snmptrapd  <none>

-- debconf information:
* snmpd/upgradefrom521:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmpd.patch
Type: text/x-diff
Size: 2644 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-net-snmp-devel/attachments/20140429/56cedd32/attachment.patch>

More information about the Pkg-net-snmp-devel mailing list