blob: 33c3b2a445514c682818db64eba113a74ebcfbcc (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/net-mgmt/net-snmp-devel/files/Attic/snmptrapd.sh.in,v 1.1 2006-05-08 05:00:27 clsung Exp $
#
# PROVIDE: snmptrapd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable snmptrapd:
#
# snmptrapd_enable="YES"
#
snmptrapd_enable=${snmptrapd_enable-"NO"}
snmptrapd_flags=${snmptrapd_flags-"-p /var/run/snmptrapd.pid"}
. %%RC_SUBR%%
load_rc_config net_snmptrapd
if [ ! -z "$net_snmptrapd_enable" ]; then
echo "Warning: \$net_snmptrapd_enable is obsoleted."
echo " Use \$snmptrapd_enable instead."
snmptrapd_enable="$net_snmptrapd_enable"
[ ! -z "$net_snmptrapd_flags" ] && snmptrapd_flags="$net_snmptrapd_flags"
fi
name=snmptrapd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
load_rc_config ${name}
run_rc_command "$1"
|