diff options
author | Jerry Alexandratos <jerry@gentoo.org> | 2000-11-07 06:41:31 +0000 |
---|---|---|
committer | Jerry Alexandratos <jerry@gentoo.org> | 2000-11-07 06:41:31 +0000 |
commit | de029e07f151fa5325d298bf9e983934405d9f9b (patch) | |
tree | b80774db81b00dbea1fc3b14f7dc04aaa3da8665 /net-analyzer/ucd-snmp/files | |
parent | Add entries for UCD-SNMP. (diff) | |
download | gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.tar.gz gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.tar.bz2 gentoo-2-de029e07f151fa5325d298bf9e983934405d9f9b.zip |
Import UCD-SNMP into portage tree.
Diffstat (limited to 'net-analyzer/ucd-snmp/files')
-rw-r--r-- | net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 | 1 | ||||
-rwxr-xr-x | net-analyzer/ucd-snmp/files/snmpd | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 new file mode 100644 index 000000000000..f05153b02aca --- /dev/null +++ b/net-analyzer/ucd-snmp/files/digest-ucd-snmp-4.1.2 @@ -0,0 +1 @@ +MD5 378c8cf99e0845da4662fb72c956d20d ucd-snmp-4.1.2.tar.gz diff --git a/net-analyzer/ucd-snmp/files/snmpd b/net-analyzer/ucd-snmp/files/snmpd new file mode 100755 index 000000000000..0fd232d39f22 --- /dev/null +++ b/net-analyzer/ucd-snmp/files/snmpd @@ -0,0 +1,31 @@ +#!/bin/sh +#RCUPDATE:2 3 4:80:This line is required for script management + +. /etc/rc.d/config/functions + +SERVICE=snmpd +opts="start stop restart" + +PIDFILE=/var/run/snmpd.pid +EXE=/usr/sbin/snmpd + +start() { + ebegin "Starting $SERVICE..." + start-stop-daemon --start --quiet --exec $EXE + eend $? "Started $SERVICE." "Error Starting $SERVICE." +} + +stop() { + ebegin "Stopping $SERVICE..." + start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $EXE + eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." +} + +restart() { + stop + start +} + +doservice ${@} + + |