blob: ad5ae3691d9a3ffae3791df520852d615774e8e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/sbin/runscript
# Copyright 1999-2010 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.3 2010/10/30 14:15:50 dertobi123 Exp $
depends() {
before nagios
need mysql
}
start() {
ebegin "Starting ndo2db"
if [ -S /var/nagios/ndo.sock ] ; then
rm -f /var/nagios/ndo.sock
fi
start-stop-daemon --start --quiet --exec /usr/bin/ndo2db \
-- -c /etc/nagios/ndo2db.cfg
eend $?
}
stop() {
ebegin "Stopping ndo2db"
start-stop-daemon --stop --quiet --exec /usr/bin/ndo2db
eend $?
}
|