summaryrefslogtreecommitdiff
path: root/net/ucd-snmp/files/snmptrapd.sh
blob: 22ac708c21833cdba2c5ccc00c374a02da92485f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: snmptrapd.sh,v 1.7 2003/07/30 21:05:00 jmmv Exp $
#
# PROVIDE: snmpd
# REQUIRE: DAEMON LOGIN network
#

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="snmptrapd"
rcvar="${name}"
pidfile="/var/run/snmptrapd.pid"
command="@PREFIX@/sbin/snmptrapd"
command_args="-s -l 1 -u ${pidfile}"

if [ -f /etc/rc.subr ]; then
	load_rc_config "$name"
	run_rc_command "$1"
else
	printf " $name"
	${command} ${snmptrapd_flags} ${command_args}
fi