Search This Blog

Sunday, September 29, 2013

Add service Auto start centos

To auto start services in Centos or Redhat OS, you can use builtin chkconfig utility. It is located in /sbin directory. In the example below using a service called noip2d.
To auto start a noip2d service:
  1. Add Service to auto start
  2. sudo /sbin/chkconfig --add noip2d
  3. Check is it addded
  4. sudo /sbin/chkconfig --list noip2d
  5. noip2d          0:off   1:off   2:off   3:on    4:off   5:off   6:off
  6. Make it auto start on run different levels
  7. sudo /sbin/chkconfig noip2d on
  8. Check it on run levels
  9. sudo /sbin/chkconfig --list noip2d
  10. noip2d          0:off   1:off   2:on    3:on    4:on    5:on    6:off

No comments:

Post a Comment