3

Yesterday I noticed the following when I started removing several apps I was not going to use. The file in the rc folders (/etc/rc0.d , /etc/rc1.d.... /etc/rc6.d) associated with the deleted app were still there.

For example, after removing gammut, the file /etc/rc0.d/K20gammu-smsd was still there.

Same for the following I found:

Motion - /etc/rc0.d/K60motion
WiCD - /etc/rc0.d/K20wicd
HDDTemp - /etc/rc0.d/K20hddtemp

And so on. This also applies to other RC levels corresponding to the single user, multi user and shutdown levels.

What do I need to do (Avoiding having to do it manually for each) to remove any trace of the app.

11
  • 1
    I thought the purge option in apt-get deals with this(?)
    – Rinzwind
    Apr 5, 2013 at 19:32
  • 1
    Since these are startup scripts, and the filename start K instead of S, they should have no effect, and shouldn't even slow down the start-up process. (Or am I missing something?) Are you sure you need to remove them at all? Apr 5, 2013 at 19:51
  • 1
    @LuisAlvarado Replacing S with K in the name of an rcN.d-style startup script is just the standard way of disabling the service. It's not actually killing anything. Still, your question stands--no files for these services existed in your rc... directories before the packages were installed, so there should be some automated way to get back to that state. Apr 5, 2013 at 20:28
  • 1
    @LuisAlvarado Yep, 1 millibyte per app. :) Apr 5, 2013 at 20:35
  • 2
    @Jai S starts a service, K kills it. Apr 15, 2013 at 16:25

0

You must log in to answer this question.