insserv or update-rc.d or something else?

Berni Elbourn berni at elbournb.fsnet.co.uk
Mon Sep 19 20:25:05 UTC 2011


On 19/09/11 12:04, Berni Elbourn wrote:
>
> On 17/09/11 16:38, sktsee wrote:
>>
>> On 09/16/2011 03:03 PM, Berni Elbourn wrote:
>>> Hi,
>>>
>>> I have a 10.04 lts system which seems to have been a victim of the
>>> problem described here.
>>>
>>> https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/739007
>>>
>>> I have used mv to alter the ordering of rc0.d, and rc6.d and the system
>>> no longer looses data on a clean halt/reboot.
>>>
>>> However, is there an official way to fix this please?
>>>
>>
>> Try "sudo dpkg-reconfigure initscripts". Though since you've moved stuff
>> around I'm not sure if the packaging scripts will handle setting up the
>> service symlinks correctly. You may need to use the "--force" option.
>>
>> You may have reinstall the initscripts package altogether if
>> dpkg-reconfigure doesn't work. To reinstall use "sudo apt-get install
>> --reinstall initscripts" If that fails, use the "--force=yes" option
>> with that.
>>
>> Standard caveat: You should backup your system before attempting to use
>> any of the above commands since there is a potential to damage your
>> setup.
>>
>> If all else fails, you could fix the links manually by comparing them
>> againt the rc*.d directories of a LiveCD.
>>
>
> Thanks I think I will have a peek at the pre/pst scripts and try that on
> a test system first ;-)
>

This procedure worked:

$ update-rc.d -f halt remove
$ update-rc.d -f reboot remove
$ apt-get install --reinstall initscripts

$ ls rc0.d rc6.d -1

rc0.d:
K74bluetooth
README
S10unattended-upgrades
S15wpa-ifupdown
S20sendsigs
S30urandom
S31umountnfs.sh
S35networking
S40umountfs
S60umountroot
S90halt

rc6.d:
K74bluetooth
README
S10unattended-upgrades
S15wpa-ifupdown
S20sendsigs
S30urandom
S31umountnfs.sh
S35networking
S40umountfs
S60umountroot
S90reboot

-- 
"Confidence is what you have before you understand a problem" - Woody Allen




More information about the ubuntu-users mailing list