PDA

View Full Version : How do I get back init scripts?


lazloman
November 24th, 2005, 03:22 AM
I stupidly removed the gdm initscript from /etc/init.d/. I hoped that re-installing gdm would restore it, but no go. Any ideas? By the way, I could not find sysvconfig in synaptic. I thought that was the 'ubertool' for managing initscripts.
TIA

ssam
November 24th, 2005, 07:12 AM
if you have actually removed it then i am not sure how to get it back. you are safer making them unexecutable
sudo chmod -x /etc/init.d/gdm
or removing the symlinks from /etc/rc1.d/, /etc/rc2.d/ etc.

you can try my attached /etc/init.d/gdm (i had to put a .txt on it to make the forum upload happy)

lazloman
November 24th, 2005, 10:33 AM
Thanks, the script seems to work just fine, but do you have a copy of the rc script also? I dumped those also.

ssam
November 24th, 2005, 12:23 PM
do you mean these?
/etc/rc0.d/K01gdm
/etc/rc1.d/K01gdm
/etc/rc2.d/S13gdm
/etc/rc3.d/S13gdm
/etc/rc4.d/S13gdm
/etc/rc5.d/S13gdm
/etc/rc6.d/K01gdm

they are all symlinks to /etc/init.d/gdm