summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/snmpd.sh.sample
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2004-03-10 13:40:41 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2004-03-10 13:40:41 +0000
commitef7f2d6bba55bb9fb1d0ff03420c07b0c048ee54 (patch)
tree952e0fb8a1543185f790d3580ff753f8799f1fe0 /net-mgmt/net-snmp/files/snmpd.sh.sample
parent- Update MAINTAINER-line of my ports to new @FreeBSD.org address (diff)
Various fixes / improvements.
See PR for details. PR: ports/63759 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
Notes
Notes: svn path=/head/; revision=103525
Diffstat (limited to 'net-mgmt/net-snmp/files/snmpd.sh.sample')
-rw-r--r--net-mgmt/net-snmp/files/snmpd.sh.sample7
1 files changed, 4 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/files/snmpd.sh.sample b/net-mgmt/net-snmp/files/snmpd.sh.sample
index f56301232645..814c0b7ac701 100644
--- a/net-mgmt/net-snmp/files/snmpd.sh.sample
+++ b/net-mgmt/net-snmp/files/snmpd.sh.sample
@@ -28,8 +28,9 @@ fi
name=snmpd
rcvar=`set_rcvar`
-command=%%PREFIX%%/sbin/snmpd
-pidfile='/var/run/snmpd.pid'
+command=%%PREFIX%%/sbin/${name}
+pidfile=/var/run/${name}.pid
+sig_stop=-KILL
-load_rc_config $name
+load_rc_config ${name}
run_rc_command "$1"