[QUOTE=jmozdzen;12117]
Looking at the original messages, there is another package involved
insserv: There is a loop between service RALUS and alfresco if stopped insserv: loop involving service alfresco at depth 2 insserv: loop involving service RALUS at depth 1 insserv: Stopping alfresco depends on VRTSralus.init and therefore on system facility `$all' which can not be true!
Does RALUS exist on the “test sless11 server”, too and if yes, are the /etc/init.d files identical?[/code]
I dont beoieve so
The init system is trying to create a proper boot order of things, which is done via resolving dependency chains defined in the “LSB tags” of the files in /etc/init.d:
[CODE]### BEGIN INIT INFO
Provides: cron
Required-Start: $remote_fs $syslog $time
Should-Start: $network smtp
Required-Stop: $remote_fs $syslog
Should-Stop: $network smtp
Default-Start: 2 3 5
Default-Stop: 0 1 6
Short-Description: Cron job service
Description: Cron job service
END INIT INFO[/CODE] (sample taken from /etc/init.d/cron)
Now for some reason, the LSB sections of the packets in question each define that they depend on the other service to be started (or stopped) first - which “insserv” cannot resolve. Hence the error messages.
Have a look at the LSB sections of the services in question…[/QUOTE]
I see in the RALUS script Required-Start is set to $ALL and i assume this is the “issue” alfresco is talking about in the error. I do not know what Required-Start should be in this case.
Here is the init.d file of alfresco:
[code]#!/bin/sh
chkconfig: 2345 80 30
description: Alfresco Community
RETVAL=0
start () {
/opt/alfresco/alfresco.sh start “$2”
RETVAL=$?
if [ -d “/var/lock/subsys” ] && [ id -u
= 0 ] && [ $RETVAL -eq 0 ] ; then
touch /var/lock/subsys/alfresco
fi
}
stop () {
/opt/alfresco/alfresco.sh stop “$2”
RETVAL=$?
}
case “$1” in
start)
start “$@”
;;
stop)
stop “$@”
;;
restart)
stop “$@”
start “$@”
;;
*)
/opt/alfresco/alfresco.sh “$@”
RETVAL=$?
esac
exit $RETVAL[/code]
Here is init.d of RALUS:
[code]#!/bin/sh
BEGIN INIT INFO
Provides: RALUS
Required-Start: $ALL
Required-Stop:
Default-Start: 2 3 5
Default-Stop: 0 1 4 6
Description: Symantec Backup Exec Remote Agent
END INIT INFO
chkconfig: 235 95 35
description: Symantec Backup Exec Remote Agent
if [ ! -d /opt/VRTSralus ]
then
echo “Symantec Backup Exec Remote Agent missing /opt/VRTSralus [FAILED]”
exit 1
fi
if [ ! -d /etc/VRTSralus ]
then
echo “Symantec Backup Exec Remote Agent missing /etc/VRTSralus [FAILED]”
exit 1
fi
if [ ! -d /var/VRTSralus ]
then
echo “Symantec Backup Exec Remote Agent missing /var/VRTSralus [FAILED]”
exit 1
fi
CMD="$1"
case “$CMD” in
‘start’)
if [ -x /opt/VRTSralus/bin/beremote ]
then
if [ -f /bin/grep ]
then
PID=`/bin/ps -e | /bin/grep beremote | /bin/sed -e 's/^ *//' -e 's/ .*//'`
else
PID=`/usr/bin/ps -e | /usr/bin/grep beremote | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'`
fi
if [ "${PID}" != "" ]
then
echo "Symantec Backup Exec Remote Agent currently running."
exit 2
fi
if [ -f /dev/st0 -a ! -f /dev/sg0 ]
then
modprobe sg
fi
echo -n "Starting Symantec Backup Exec Remote Agent "
rm -f /var/VRTSralus/ralus.pid
rm -f /var/VRTSralus/ralus.errpid
/opt/VRTSralus/bin/beremote >/var/VRTSralus/beremote.service.log 2>/var/VRTSralus/beremote.service.log &
PIDWAIT=30
while [ "$PIDWAIT" != "0" ]
do
if [ -f /var/VRTSralus/ralus.pid ]
then
PIDWAIT=0
else
PIDWAIT=$(($PIDWAIT-1))
echo -n "."
sleep 1;
fi
if [ -f /var/VRTSralus/ralus.errpid ]
then
PIDWAIT=0
fi
done
if [ -f /var/VRTSralus/ralus.pid ]
then
RETVAL=0
else
RETVAL=1
fi
echo
else
RETVAL=1
fi
if [ "$RETVAL" = "0" ]
then
echo "Starting Symantec Backup Exec Remote Agent: [ OK ]"
else
echo "Starting Symantec Backup Exec Remote Agent: [FAILED]"
fi
;;
‘stop’)
if [ -f /bin/grep ]
then
PID=/bin/ps -e | /bin/grep beremote | /bin/sed -e 's/^ *//' -e 's/ .*//'
else
PID=/usr/bin/ps -e | /usr/bin/grep beremote | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'
fi
if [ "${PID}" != "" ]
then
echo -n "Stopping Symantec Backup Exec Remote Agent "
if [ -f /bin/pkill ]
then
/bin/pkill -15 beremote
else
/usr/bin/pkill -15 beremote
fi
RETVAL=$?
PIDWAIT=30
while [ "$PIDWAIT" != "0" ]
do
RESULT=`ps -p ${PID} | grep ${PID} | awk '{print $1}'`
if [ -f /var/VRTSralus/ralus.pid -a "$RESULT" = "" ]
then
PIDWAIT=0
RETVAL=0
else
PIDWAIT=$(($PIDWAIT-1))
echo -n "."
sleep 1;
fi
done
echo
rm -f /var/VRTSralus/ralus.pid
rm -f /var/VRTSralus/ralus.errpid
else
RETVAL=1
fi
if [ "$RETVAL" = "0" ]
then
echo "Stopping Symantec Backup Exec Remote Agent: [ OK ]"
else
echo "Stopping Symantec Backup Exec Remote Agent: [FAILED]"
fi
;;
‘restart’)
$0 stop
$0 start
RETVAL=1
;;
*)
echo “Symantec Backup Exec Remote Agent for Linux/Unix Servers”
echo “Usage: VRTSralus.init { start | stop | restart }”
RETVAL=1
;;
esac
exit $RETVAL[/code]