blob: d8d10ba0be268cd385b2249599bb2de4b54f0362 (
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
26
27
28
29
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: snmpd.sh,v 1.1.1.1 2002/10/24 08:29:34 jlam Exp $
#
# PROVIDE: snmpd
# REQUIRE: DAEMON
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
fi
name="snmpd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
snmpd_flags="-s" # log using syslog
command_args="-P ${pidfile}"
if [ -f @PKG_SYSCONFDIR@/snmpd.conf ]; then
command_args="${command_args} -c @PKG_SYSCONFDIR@/snmpd.conf"
fi
if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -f /etc/rc.d/DAEMON ]; then
load_rc_config $name
run_rc_command "$1"
else
@ECHO@ -n " ${name}"
${command} ${snmpd_flags} ${command_args}
fi
|