# $Header: $
IDO2DBBIN="/usr/sbin/ido2db"
+SOCKET="/var/icinga/ido.sock"
+
+function check() {
+ if [[ -S "${SOCKET}" ]] ; then
+ ewarn "Strange, the socket file already exist in \"${SOCKET}\""
+ ewarn "it will be removed now and re-created by ido2db"
+ ewarn "BUT please make your checks."
+ rm -f "${SOCKET}"
+ fi
+}
depend() {
need net
}
start() {
+ check
ebegin "Starting ido2db"
start-stop-daemon --quiet --start --pidfile /var/icinga/ido2db.lock --startas ${IDO2DBBIN} -- -c ${IDO2DBCFG}
eend $?