aboutsummaryrefslogtreecommitdiff
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
parentf94ee3fd39a17f3dd045e3dcea638337f2dd9552 (diff)
downloadports-ef7f2d6bba55bb9fb1d0ff03420c07b0c048ee54.tar.gz
ports-ef7f2d6bba55bb9fb1d0ff03420c07b0c048ee54.zip
Notes
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"