blob: 75a7e4e9a21bd5e23228e7a81d8e572b202c44c6 (
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
35
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: snmpd
# REQUIRE: DAEMON
#
# Add the following line to /etc/rc.conf to enable snmpd:
#
# snmpd_enable="YES"
#
snmpd_enable=${snmpd_enable-"NO"}
snmpd_flags=${snmpd_flags-"-p /var/run/snmpd.pid"}
. %%RC_SUBR%%
load_rc_config net_snmpd
if [ ! -z "$net_snmpd_enable" ]; then
echo "Warning: \$net_snmpd_enable is obsoleted."
echo " Use \$snmpd_enable instead."
snmpd_enable="$net_snmpd_enable"
[ ! -z "$net_snmpd_flags" ] && snmpd_flags="$net_snmpd_flags"
fi
name=snmpd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
sig_stop=KILL
load_rc_config ${name}
run_rc_command "$1"
|