insserv or update-rc.d or something else?
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:
>>> I have a 10.04 lts system which seems to have been a victim of the
>>> problem described here.
>>> 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
>> 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
"Confidence is what you have before you understand a problem" - Woody Allen
More information about the ubuntu-users