pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/32475: net-snmp: snmptrapd rc.d file uses deprecated option



>Number:         32475
>Category:       pkg
>Synopsis:       net-snmp: snmptrapd rc.d file uses deprecated option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 07 16:25:00 +0000 2006
>Originator:     Timo Schoeler
>Release:        NetBSD 2.0.2
>Organization:
RISCworks
>Environment:
NetBSD blackjack-a.riscworks.net 2.0.2 NetBSD 2.0.2 (BLACKJACK-A) #0: Sun Sep 
25 22:11:01 CEST 2005  
XxX%blackjack-a.riscworks.net@localhost:/usr/obj/sys/arch/i386/compile/BLACKJACK-A
 i386
>Description:
snmptrapd's rc.d file uses the deprecated -u instead of -p for as PID file 
option.
>How-To-Repeat:
use snmptrapd to start up snmptrapd.
>Fix:
--- snmptrapd   2006-01-07 17:12:41.000000000 +0100
+++ snmptrapd.new       2006-01-07 17:19:04.000000000 +0100
@@ -14,7 +14,7 @@
 command="/usr/pkg/sbin/${name}"
 pidfile="/var/run/${name}.pid"
 snmptrapd_flags="-Ls 1"        # log using syslog w/ facility LOG_LOCAL1
-command_args="-u ${pidfile}"
+command_args="-p ${pidfile}"
 
 if [ -f /usr/pkg/etc/snmptrapd.conf ]; then
        command_args="${command_args} -c /usr/pkg/etc/snmptrapd.conf"




Home | Main Index | Thread Index | Old Index