Bug 103811 - snmpd is -KILLed instead of gracefully TERMinated
Summary: snmpd is -KILLed instead of gracefully TERMinated
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jun Kuriyama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 14:50 UTC by Yuri Arabadji
Modified: 2007-03-25 13:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Arabadji 2006-09-29 14:50:22 UTC
/usr/local/etc/rc.d/snmpd.sh script instead of terminating snmpd by sending SIGTERM signal, sends SIGKILL. That's very bad, because in such case snmpd doesn't write its information to persistent storage file.

Fix: 

Remove or comment out the following line in /usr/local/etc/rc.d/snmpd.sh:
sig_stop=KILL
How-To-Repeat: /usr/local/etc/rc.d/snmpd.sh stop
or
/usr/local/etc/rc.d/snmpd.sh restart
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-09-29 19:59:20 UTC
State Changed
From-To: open->feedback

Which of the SNMP ports do you have installed?  There are several.
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-29 23:04:48 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kuriyama

Over to maintainer
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-03-25 13:35:52 UTC
kuriyama    2007-03-25 12:35:46 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/net-snmp    Makefile 
    net-mgmt/net-snmp/files snmpd.sh.in 
  Added files:
    net-mgmt/net-snmp/files patch-net-snmp-config.h.in 
  Log:
  - Remove "sig_stop=KILL" in snmpd.sh.in.  This was introduced when
    PR ports/63759 was committed (3 years ago).  Try to use normal TERM
    signal for graceful termination [1].
  - Increase /bin/ps cache size from 16KB to 120KB.  This should fix
    process counter (ex prCount.1) on the server which has large number
    of processes [2].
  
  PR:             ports/103811 [1], ports/110498 [2]
  Reported by:    Yuri Arabadji <yuri@deepunix.net> [1],
                  Mike Andrews <mandrews@bit0.com> [2]
  
  Revision  Changes    Path
  1.141     +1 -1      ports/net-mgmt/net-snmp/Makefile
  1.1       +11 -0     ports/net-mgmt/net-snmp/files/patch-net-snmp-config.h.in (new)
  1.6       +1 -2      ports/net-mgmt/net-snmp/files/snmpd.sh.in
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Jun Kuriyama freebsd_committer freebsd_triage 2007-03-25 13:35:56 UTC
State Changed
From-To: feedback->closed

Changed to use TERM signal.  Thanks!