9

Suppose one deleted the following files.

/etc/init.d/.depend.boot
/etc/init.d/.depend.start
/etc/init.d/.depend.stop

How to regenerate them?

10

Good question. The only reference I've found to those files is in man insserv:

   /etc/init.d/.depend.boot,
   /etc/init.d/.depend.start,
   /etc/init.d/.depend.stop
          The make(1) like dependency files produced by  insserv  for  booting,
          starting, and stopping with the help of startpar(8).

And in fact, running just plain insserv touches their modification time. So try that and see if it rebuilds them.

As a tip, when you are tempted to delete something like this for whatever reason, move them to a temporary trash directory instead.

  • 1
    insserv regenerated them. – adrelanos Nov 28 '13 at 22:25
0

find the package it come from and excecute something like :

dpkg --reinstall package name

or

dpkg-reconfigure package name

I'm not sure but that how I would do.
To find what package create what file you can use:

dpkg --search .depend.start

Thos file seems to be generated by the package insserv so command line according to this blog and the man page:

dpkg-reconfigure insserv 

Should fix the problem, but BE CAREFULL THIS CAN BREAK THE BOOT SEQUENCE

  • 2
    They are not associated with any package on my Debian system. – Joseph R. Nov 28 '13 at 13:45
  • 2
    Isn't it obvious that those files are system-wise not package-wise? This simply cannot work, as I understand it, they contain information from many packages! – yo' Nov 28 '13 at 14:03
  • @tohecz This is obvious that those script came from somthing and more likely a package as they are not on my debian and more over when I read those kind of thing goatpr0n.de/blog/2008/04/… – Kiwy Nov 28 '13 at 14:10
  • @JosephR. do you have them install ? – Kiwy Nov 28 '13 at 14:15
  • 1
    I'm inclined to agree with @tohecz on this. These scripts are generated based on the services you have installed. They do not depend on a single package. – Joseph R. Nov 28 '13 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.