• 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.

  • Life always offers you a second chance ... Its called tomorrow !!!

    Thursday, January 30, 2014

    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

    0 comments:

    Post a Comment