3

sysv-rc was installed to get a hold of systems autostart, but in the end it wasn't needed (as update-rc.d came in handy). So I dumbly do apt-get purge sysv-rc and type Yes, do as I say! to the apt prompt and bam! - no dirs/files in /etc/rc?.d

What can/should I do? I believe I don't have full backup for this server.

And I also tried doing i.e. update-rc.d mysql defaults but it seems it only edits /etc/runlevel.conf and doesn't involve direct actions with etc/rc?.d/ :(

edit: can anyone also help out with the link on how /etc/rc?.d/ is generated? If I still have /etc/runlevel.conf, is there any chance /etc/rc?.d/ dirs/simlinks will be recreated automatically after system reboot? Thanks.

kK-Storm
  • 167

1 Answers1

3

Reinstall the purged package (sysv-rc). If that isn't enough, try to recreate the links using insserv /etc/init.d or something similar.

ptman
  • 29,862