PDA

View Full Version : Is it a mistake to leave scripts in /etc/init.d that I dont want to run at boot time?



winger9
12-21-2016, 10:36 PM
I have Knoppix installed on my hard disc (distro 7.0.2, kernel release 3.3.7.).

Could you please tell me if ALL scripts in the directory /etc/init.d/ are
executed at boot time?

The reason I ask is because I have altered (intelligently) one or two of the
standard scripts that are in /etc/init.d/, such as

/etc/init.d/knoppix-startx
/etc/init.d/knoppix-autoconfig.

But before I altered them, I kept a copy of the originals in /etc/init.d/, and
in the above case the copies I kept are

/etc/init.d/knoppix-startx-ORIG
/etc/init.d/knoppix-autoconfig-ORIG.

Does this mean that these latter scripts are actually being run at boot time
AS WELL AS

/etc/init.d/knoppix-startx
/etc/init.d/knoppix-autoconfig?

The system seems to run fine, but it's only just occurred to me (after a couple
of years of use), that I might be running 2 lots of scripts as above.

Your advice would be much appreciated, thanks.

philo
12-22-2016, 12:54 PM
Why bother and not keep Knoppix simple and leave it as it is DESIGNED to be used?

Werner P. Schulz
12-22-2016, 01:06 PM
No, Knoppix doesn't take care of '/etc/init.d/knoppix-startx-ORIG' and '/etc/init.d/knoppix-autoconfig-ORIG'.
Have a look at '/etc/inittab'.

winger9
02-07-2017, 09:40 PM
Many thanks Werner. Your kind reply is most welcome. I can breathe a sigh of relief that I haven't made a blunder.

Capricorny
09-15-2017, 06:27 AM
Why bother and not keep Knoppix simple and leave it as it is DESIGNED to be used?

Take a look in /etc/rc.local to get the answer to that question.