How to remove service from autostart?
13,408
If your system has both:
chkconfig service off
systemctl disable service
RHEL5 uses chkconfig
by default. On a side note, I recommend upgrading because RHEL 5 has been EOL since March 31st, 2017 unless you have purchased the Extended Life Cycle Support Add-On subscription.
Related videos on Youtube
Author by
it dev
Updated on September 18, 2022Comments
-
it dev almost 2 years
By default, if my Linux is booted, some services
likehttpd, named
start automatically.
I want to start them manually, I want to remove them from autostartup.
In the internet, it is said that it is possible withsystemctl
andchkconfig
commands.
My Linux supports both of them.
How exactly and which command I can do it with?
My Linux version is: Redhat EL5. -
it dev about 5 yearsIf I write on the terminal:
chkconfig httpd off
--> will it removehttpd
from autostart? -
it dev about 5 yearsWhat do you recommend upgrading? O/S? Is RHEL 5 only has been EOL? Or all releases of RHEL ?
-
Nasir Riley about 5 years@itdev 1) Yes, that command will stop the service from starting at boot. It would then need to be started manually which is what you want. 2) RHEL 5 is EOL. RHEL 6 and RHEL 7 are still supported. I recommend going to RHEL 7 as 6 is EOL next year.
-
it dev about 5 yearsThank you for perfect explanation! And last question, how is it advised going to RHEL 7? By installing new OS or just by upgrading OS with some commands?
-
Nasir Riley about 5 years@itdev You must perform a fresh install.