Easily Control Service Auto-start Using Chkconfig

A friend showed me this and I’ve used it a few times since. Here’s the easiest way to make a service auto start or stop after reboot:

chkconfig servicename on to auto-start and chkconfig servicename off to stop auto-startup.

Thanks, Lenny! Also, can anyone remind me what command I use to add regular user bins to root’s path? (ie. add /usr/bin)

Chrissy is a PowerShell MVP who has worked in IT for nearly 20 years, and currently serves as a Sr. Database Engineer in Belgium. Always an avid scripter, she attended the Monad session at Microsoft’s Professional Developers Conference in Los Angeles back in 2005 and has worked and played with PowerShell ever since. Chrissy is currently pursuing an MS in Systems Engineering at Regis University and helps maintain RealCajunRecipes.com in her spare time. She holds a number of certifications, including those relating to SQL Server, SuSE Linux, SharePoint and network security. She recently became co-lead of the SQL PASS PowerShell Virtual Chapter. You can follow her on Twitter at @cl.

Posted in Linux
One comment on “Easily Control Service Auto-start Using Chkconfig
  1. polarizer says:

    i tried this command on my ubuntu box several times/versions until i realized that i’ve to use “update-rc.d” instead. just to mention it.

    to answer your question. if i understood correctly you want to expand root’s search path for binaries?!

    put following line

    export PATH=$PATH:/usr/bin

    in the end of the file


    logout yourself and login again

    and check with

    echo $PATH

    whether path is now complete or not.


Leave a Reply

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