[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Strange behaviour in Debian Lenny



Dear,

I have a strange behaviour in Debian Lenny.
In /etc/rc2.d (default runlevel), some startup scripts run tice when
booting.

I've made a test script in /etc/init.d/echo.sh like:

#!/bin/bash
### BEGIN INIT INFO
# Provides:
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Deferred execution scheduler
# Description:       Debian init script
#                    scheduler
### END INIT INFO

echo "xxx" >> /home/me/text

With a softlink:
lrwxrwxrwx 1 root root  17 2010-08-10 13:55 S30echo.sh ->
../init.d/echo.sh

The file /home/me/text exists and is empty.
When I reboot the system /home/me/text looks like:

xxx
xxx

So, the script runs twice. Any explanation for that?

P.


Reply to: