Rebuilding /etc/rc?.d/ links

Posted by timday on Server Fault See other posts from Server Fault or by timday
Published on 2010-04-18T09:26:33Z Indexed on 2010/04/18 9:33 UTC
Read the original article Hit count: 404

Filed under:
|
|
|
|

A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list).

The system seems to boot and run normally, but I'm worried its storing up trouble for the future.

Is there an easy (fairly automatic) way of rebuilding this piece of the system ? As I understand it, the links are generally manipulated by package postinst scripts using update-rc.d (and I haven't made any changes from the installed defaults).

Without any better ideas, my plan is one of:

  • Diff a listing with another similar system to identify which packages need their links repairing.
  • Wait until the system is upgraded to Squeeze (hopefully not too long :^) and assume the mass package upgrade will restore all the missing links.

© Server Fault or respective owner

Related posts about debian

Related posts about debian-lenny