• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to auto start service after reboot in Red Hat Linux?

    You can run the below command to auto start the service after reboot
    # chkconfig service_name on
    But the above command will enable the service only for the current run level so I always prefer using the below command

    # chkconfig --level 35 service_name on
    Using the level argument you can select the runlevel on which you want your service to be running

    To view all the currently enabled services after reboot

    The below command will show all the services enabled for run level 3 and 5
    # chkconfig --list | awk '{print $1"\t\t", $5 , $7}' | grep on
    acpid            3:on 5:on
    anacron          3:on 5:on
    atd              3:on 5:on
    auditd           3:on 5:on
    cimlistenerd     3:on 5:on
    cimserverd       3:on 5:on
    cpuspeed         3:on 5:on
    crond            3:on 5:on
    dcerpcd          3:on 5:on
    eventlogd        3:on 5:on
    haldaemon        3:on 5:on

    Related Articles
    How to get a list of open ports in Linux?
    What are the s and k scripts in the etc rcx.d directories
    How to check all the currently running services in Linux

    Follow the below links for more tutorials

    What is GRUB Boot Loader ?
    How to configure Private Network in VMware Workstation
    8 examples to help you understand top command usage in Unix/Linux
    Script to take backup of any critical directory in Unix/Linux
    15 tips to enhance security of your Linux machine
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is kernel-PAE in Linux?
    What is swappiness and how do we change its value?
    How to log iptables messages in different log file
    What is virtual memory, paging and swap space?
    Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    Iptables rules to allow/block ssh incoming/outgoing connection in Linux
    Iptables rules to block/allow icmp ping request in Linux

    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How to auto start service after reboot in Red Hat Linux? How to auto start service after reboot in Red Hat Linux? Reviewed by Deepak Prasad on Thursday, January 30, 2014 Rating: 5

    1 comment:

    Powered by Blogger.