5

I want to decrease my startup process and I see the service named "screen-cleanup" What is that? Is it safe to remove?

  • How did you get that service first up? What version of ubuntu are you using? – jobin Apr 8 '14 at 12:58
  • I don't know, I installed many things. I'm using 14.04 Trusty Tahr Daily Build – rofiquzzaki Apr 8 '14 at 13:11
  • @rofiquzzaki You need to tell us what you installed (or tried to), "screen-cleanup" is not a default application. – edwin Apr 8 '14 at 13:17
  • ok, i've installed bum, minicom, pidgin, gnome (complete), sysv-rc-conf, and many other things (I forget) – rofiquzzaki Apr 8 '14 at 14:49
  • @edwin Yes, it is default – Izkata Sep 10 '14 at 2:00
6

Short Answer:

First of all, the mystery application to which that particular startup service belongs, is screen, which you may have installed separately, or it may have come as part of byobu terminal multiplexer. Is it safe to disable? Basically, yes, but you won't be able to use screen. You can, however, still use byobu. I currently have it disabled, and writing this after a reboot.

More Details

Now, onto the investigation and some proofs. Every start-up process has a start-up scripts, and initialization scripts to those are located in /etc/rc folders. There is several of them, depending on your system's run level. Run level topic is something separate from this question, but if anyone is interested, I recommend reading up on this answer from superuser.com, and man pages for init, update-rc.d, and runlevel.

My current run-level is 2, and under /etc/rc2.d/ I have the initializing script for screen-cleanup, S20screen-cleanup. If you cat it, you'll see that basically all it does is clean up saved sessions from screen (stored in /var/run/screen).

enter image description here

Disabling can be done through Start-up Applications (GUI) or by renaming the initialization script from S20screen-cleanup to K20screeen-cleanup ( more precisely , it is 'sudo mv S20screen-cleanup K20screen-cleanup' command).

What will happen if you disable this service ? Having rebooted my machine , I tried 3 things: enter screen, enter byobu, and ls /var/run/screen . The result is that byobu still runs (probably because it falls back to using tmux,, which also comes with byobu), screen won't start (reports "Cannot make directory '/var/run/screen': Permission denied" ), and the said folder is not existent. But hey, the system is still running, everything still works, so you could say it's safe enough to disable that service, especially if you don't usually use screen or byobu.

P.S: Although this answer is somewhat late, I hope moderators will allow leaving it here, so it may be useful to other users who are looking into disabling some of the startup services.

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.