summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2020-03-17 01:30:25 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2020-03-17 01:31:31 -0500
commitd4e5a319c2fb1f17a2e26e5f560f15d1bd2f13de (patch)
tree0951f7a66f9209f61d623e65e53af30ad14f6548 /net-analyzer/icinga/files/ido2db-init.d
parentdev-vcs/stgit: version bump, 0.21 (diff)
downloadgentoo-d4e5a319c2fb1f17a2e26e5f560f15d1bd2f13de.tar.gz
gentoo-d4e5a319c2fb1f17a2e26e5f560f15d1bd2f13de.tar.bz2
gentoo-d4e5a319c2fb1f17a2e26e5f560f15d1bd2f13de.zip
profiles: remove icinga and icinga-web
Closes: https://bugs.gentoo.org/709998 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'net-analyzer/icinga/files/ido2db-init.d')
-rw-r--r--net-analyzer/icinga/files/ido2db-init.d39
1 files changed, 0 insertions, 39 deletions
diff --git a/net-analyzer/icinga/files/ido2db-init.d b/net-analyzer/icinga/files/ido2db-init.d
deleted file mode 100644
index 2b827fa87535..000000000000
--- a/net-analyzer/icinga/files/ido2db-init.d
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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 icinga
- 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
-}