summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/icinga/files/ido2db-init.d')
-rw-r--r--net-analyzer/icinga/files/ido2db-init.d40
1 files changed, 0 insertions, 40 deletions
diff --git a/net-analyzer/icinga/files/ido2db-init.d b/net-analyzer/icinga/files/ido2db-init.d
deleted file mode 100644
index 6ad019c..0000000
--- a/net-analyzer/icinga/files/ido2db-init.d
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga/files/ido2db-init.d,v 1.4 2012/09/17 19:53:22 prometheanfire Exp $
-
-get_config() {
- if [ -e "${IDO2DBCFG}" ]; then
- sed -n -e 's:^[ \t]*'$1'=\([^#]\+\).*:\1:p' "${IDO2DBCFG}"
- fi
-}
-
-command=/usr/sbin/ido2db
-command_args="-c ${IDO2DBCFG}"
-pidfile="$(get_config lock_file)"
-
-depend() {
- config "${IDO2DBCFG}"
-
- need net
- use dns logger firewall
-
- case $(get_config db_servertype) in
- mysql)
- use mysql ;;
- pgsql)
- use postgresql ;;
- esac
-}
-
-IDO2DBSOCKET="$(get_config socket_name)"
-
-
-start_pre() {
- if [ -S "${IDO2DBSOCKET}" ] ; then
- ewarn "Strange, the socket file already exist in \"${IDO2DBSOCKET}\""
- ewarn "it will be removed now and re-created by ido2db"
- ewarn "BUT please make your checks."
- rm -f "${IDO2DBSOCKET}"
- fi
-}