]> Pileus Git - ~andy/sunrise/blob - net-analyzer/icinga-core/files/ido2db-init.d
app-text/odt2txt: Remove hardened_makefile.patch
[~andy/sunrise] / net-analyzer / icinga-core / files / ido2db-init.d
1 #!/sbin/runscript
2 # Copyright 1999-2010 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4 # $Header: $
5
6 IDO2DBBIN="/usr/sbin/ido2db"
7
8 depend() {
9         need net
10         use dns logger firewall
11         after mysql postgresql
12 }
13
14 start() {
15         ebegin "Starting ido2db"
16         start-stop-daemon --quiet --start ${IDO2DBBIN} -- -c ${IDO2DBCFG}
17         eend $?
18 }
19
20 stop() {
21         ebegin "Stopping ido2db"
22         start-stop-daemon --quiet --stop ${IDO2DBBIN} -- -c ${IDO2DBCFG}
23         eend $?
24 }