diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2008-06-08 18:37:51 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2008-06-08 18:37:51 +0000 |
commit | bd408ecdab66967e0fa6efc3af3e383cbc655572 (patch) | |
tree | 52fbf0e7841a9f1a9a2e2e7cf998ab8a07095ee1 /net-analyzer/ndoutils/files | |
parent | Adjust nagios-3 mask (diff) | |
download | historical-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-x | net-analyzer/ndoutils/files/ndo2db.init-nagios3 | 22 |
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 $? +} |