summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2001-09-06 09:51:34 +0000
committerDonny Davies <woodchip@gentoo.org>2001-09-06 09:51:34 +0000
commit928c92da05db0efa0c972f69e15c0eb3c06c97b4 (patch)
tree0e35961c292e8231f9aecfcfffb67038b4623ee4 /net-analyzer/ucd-snmp/files/snmpd.rc6
parentadded rc5/rc6 versions of ucd-snmp (diff)
downloadgentoo-2-928c92da05db0efa0c972f69e15c0eb3c06c97b4.tar.gz
gentoo-2-928c92da05db0efa0c972f69e15c0eb3c06c97b4.tar.bz2
gentoo-2-928c92da05db0efa0c972f69e15c0eb3c06c97b4.zip
This package is now supprting rc5 and rc6.
Diffstat (limited to 'net-analyzer/ucd-snmp/files/snmpd.rc6')
-rw-r--r--net-analyzer/ucd-snmp/files/snmpd.rc626
1 files changed, 26 insertions, 0 deletions
diff --git a/net-analyzer/ucd-snmp/files/snmpd.rc6 b/net-analyzer/ucd-snmp/files/snmpd.rc6
new file mode 100644
index 000000000000..eec80a9419f7
--- /dev/null
+++ b/net-analyzer/ucd-snmp/files/snmpd.rc6
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /usr/share/snmp/snmpd.conf ] ; then
+ eerror "You need an /usr/share/snmp/snmpd.conf to run ucd-snmpd"
+ eerror "There is an example config in /usr/share/docs/ucd-snmp"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting snmpd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/snmpd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping snmpd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/snmpd
+ eend $?
+}