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:
Add Service to auto start
sudo /sbin/chkconfig --add
noip2d- Check is it addded
- sudo /sbin/chkconfig --list noip2d
- noip2d 0:off 1:off 2:off 3:on 4:off 5:off 6:off
- Make it auto start on run different levels
- sudo /sbin/chkconfig noip2d on
- Check it on run levels
- sudo /sbin/chkconfig --list noip2d
- noip2d 0:off 1:off 2:on 3:on 4:on 5:on 6:off
No comments:
Post a Comment