summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2008-06-08 18:37:51 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2008-06-08 18:37:51 +0000
commitbd408ecdab66967e0fa6efc3af3e383cbc655572 (patch)
tree52fbf0e7841a9f1a9a2e2e7cf998ab8a07095ee1 /net-analyzer/ndoutils/files
parentAdjust nagios-3 mask (diff)
downloadhistorical-bd408ecdab66967e0fa6efc3af3e383cbc655572.tar.gz
historical-bd408ecdab66967e0fa6efc3af3e383cbc655572.tar.bz2
historical-bd408ecdab66967e0fa6efc3af3e383cbc655572.zip
rev-bump for Nagios 3, added ~ppc, fix quoting
Package-Manager: portage-2.1.5.4
Diffstat (limited to 'net-analyzer/ndoutils/files')
-rwxr-xr-xnet-analyzer/ndoutils/files/ndo2db.init-nagios322
1 files changed, 22 insertions, 0 deletions
diff --git a/net-analyzer/ndoutils/files/ndo2db.init-nagios3 b/net-analyzer/ndoutils/files/ndo2db.init-nagios3
new file mode 100755
index 000000000000..ea98d3f4e754
--- /dev/null
+++ b/net-analyzer/ndoutils/files/ndo2db.init-nagios3
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/files/ndo2db.init-nagios3,v 1.1 2008/06/08 18:37:51 dertobi123 Exp $
+
+depends() {
+ before nagios
+ need mysql
+}
+
+start() {
+ ebegin "Starting ndo2db"
+ start-stop-daemon --start --quiet --exec /usr/nagios/bin/ndo2db-2x \
+ -- -c /etc/nagios/ndo2db.cfg
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ndo2db"
+ start-stop-daemon --stop --quiet --exec /usr/nagios/bin/ndo2db-2x
+ eend $?
+}