summaryrefslogtreecommitdiff
path: root/net/net-snmp/files
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-05-31 11:47:29 +0000
committertron <tron@pkgsrc.org>2004-05-31 11:47:29 +0000
commit76390f2d9bea52f4d81e932dad218bebcdeafd32 (patch)
tree16ff74069fd9417aa5b8a5edb5b15f88ca4dd750 /net/net-snmp/files
parent4afa0ed9b2a92c73f01e4efb777b0bc44b4c6f51 (diff)
downloadpkgsrc-76390f2d9bea52f4d81e932dad218bebcdeafd32.tar.gz
Use "-Ls ..." instead of deprecated "-s" command line option when
starting the daemons.
Diffstat (limited to 'net/net-snmp/files')
-rw-r--r--net/net-snmp/files/snmpd.sh4
-rw-r--r--net/net-snmp/files/snmptrapd.sh9
2 files changed, 4 insertions, 9 deletions
diff --git a/net/net-snmp/files/snmpd.sh b/net/net-snmp/files/snmpd.sh
index 34c7452855f..9a0b9328f24 100644
--- a/net/net-snmp/files/snmpd.sh
+++ b/net/net-snmp/files/snmpd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: snmpd.sh,v 1.3 2004/05/14 15:40:53 adam Exp $
+# $NetBSD: snmpd.sh,v 1.4 2004/05/31 11:47:29 tron Exp $
#
# PROVIDE: snmpd
# REQUIRE: DAEMON
@@ -13,7 +13,7 @@ name="snmpd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
-snmpd_flags="-s -S d" # log using syslog LOG_DAEMON
+snmpd_flags="-Ls d" # log using syslog LOG_DAEMON
command_args="-p ${pidfile}"
if [ -f @PKG_SYSCONFDIR@/snmpd.conf ]; then
diff --git a/net/net-snmp/files/snmptrapd.sh b/net/net-snmp/files/snmptrapd.sh
index 7225189a6c6..8a976a79749 100644
--- a/net/net-snmp/files/snmptrapd.sh
+++ b/net/net-snmp/files/snmptrapd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: snmptrapd.sh,v 1.2 2003/09/12 12:07:19 uebayasi Exp $
+# $NetBSD: snmptrapd.sh,v 1.3 2004/05/31 11:47:29 tron Exp $
#
# PROVIDE: snmptrapd
# REQUIRE: DAEMON
@@ -13,12 +13,7 @@ name="snmptrapd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
-# XXX this should include '-S 1' to explicitly set LOG_LOCAL1, but if
-# it's there snmptrapd blows up saying "no syslog facility specified"
-# and then printing a usage message (and the old -l complains too!)
-# --woods
-#
-snmptrapd_flags="-s" # log using syslog w/ facility LOG_LOCAL1
+snmptrapd_flags="-Ls 1" # log using syslog w/ facility LOG_LOCAL1
command_args="-u ${pidfile}"
if [ -f @PKG_SYSCONFDIR@/snmptrapd.conf ]; then