Missing LSB tags and overrides

Betriebssystem

Debian 6.0

Software

Mindtime OBM/Pro version: All

Fehler Meldung

When installing application that requires use of insserv on Debian version 6.0 with OBM installed, the following warning messages may be displayed:

insserv: warning: script ${service-name} missing LSB tags and overrides
insserv: Starting ${service-name} depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting ${service-name} depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: Starting ${service-name} depends on rc.local and therefore on system facility `$all' which can not be true!
insserv: There is a loop between service ${service-name} and rc.local if started
insserv: loop involving service rc.local at depth 6
insserv: loop involving service ${service-name} at depth 1

Note:
Where ${service-name} can be obmscheduler or obmaua.

Ursache

The warning is due to updates on Debian version 6 LSBInitScripts Dependency based boot sequence.

Specifically, the OBM services init scripts do not include the LSB fields, Debian is reporting problems with running the scripts.

Lösung

To resolve the problem, please add the LSB fields into the corresponding init script files. The following is an example of the change that is required for the OBM scheduler init script (e.g. /etc/init.d/obmscheduler):

### BEGIN INIT INFO
# Provides: obmscheduler
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start OBM scheduler service on bootup
# Description: Enable OBM scheduler service provided by daemon.
### END INIT INFO

The following is an example of the OBM scheduler init script that has been amended with the LSB tag fields:
/etc/init.d/obmscheduler (Updated)
#!/bin/sh
### BEGIN INIT INFO
# Provides: obmscheduler
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start OBM scheduler service on bootup
# Description: Enable OBM scheduler service provided by daemon.
### END INIT INFO

#
# scheduler: Startup Online Backup Scheduler (Online Backup Manager)
#
# chkconfig: 35 99 99
#
# description: Running obm-scheduler on system startup
case "$1" in
'start')
echo "Starting Online Backup Scheduler"
APP_HOME=/usr/local/obm
if [ -f "${APP_HOME}/bin/Scheduler.sh" ]; then
nohup sh "${APP_HOME}/bin/Scheduler.sh" > /dev/null
fi
echo ""
;;
'stop')
APP_HOME=/usr/local/obm
touch "${APP_HOME}/ipc/Scheduler/stop"
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac

/etc/init.d/obmaua

### BEGIN INIT INFO
# Provides: obmaua
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start OBM aua service on bootup
# Description: Enable OBM Auto Update Agent service provided by daemon.
### END INIT INFO
BENELUX GERMANY AUSTRIA / SWITZERLAND
+31 (0) 570 56 23 43 +49 (0) 800 12 22 587 +31 (0) 570 71 43 06
info@mindtimebackup.nl info@mindtimebackup.de info@mindtimebackup.de