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

Re: Strange behaviour in Debian Lenny



On Wed, Sep 22, 2010 at 9:49 AM, Scott Ferguson
<prettyfly.productions@gmail.com> wrote:
> On 22/09/10 17:35, polloxx wrote:
>> 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.
>>
>>
>
> "If" the script is run twice.... whack a timestamp in and see what it says.

The result is:

Wed Sep 22 12:15:44 CEST 2010
Wed Sep 22 12:16:52 CEST 2010


> Do you have insserv installed??
>

No.


Reply to: