Restarting Linux services boot time

[problem]

Every time you reboot your Linux Box – web server, samba server, etc is down.

[/problem]

[solution]

Use chkconfig. See the example tab and then reference tab for man page.

[/solution]

[example]

Show all services


chkconfig --list

List just httpd


chkconfig --list httpd

Change restart settings so web server starts at run level 5.
(do a runlevel to see normal level – most likely 5).


chkconfig --levels 5 httpd on

[/example]

[reference]

[tags]chkconfig, Linux reboot, Linux services, Linux restarts, Unix Coding School[/tags]

[/reference]

If you have found my website useful, please consider buying me a coffee below 😉

Leave a Reply

Your email address will not be published. Required fields are marked *