Admins eHow SysAdmin Tips & Tricks

May 9, 2009

How to autostart a service on Debian, CentOs and RedHat

Filed under: CentOS,Debian,General — Tags: , , , — admin @ 3:31 pm

For Debian based distros run the following command as root :

update-rc.d servicename defaults

For CentOS and RedHat run the following command as root :

chkconfig servicename on
  • Dan Bunyard

    I don’t know why Google doesn’t turn this up as the top hit. I was looking for how to auto-start a service in Debian and couldn’t seem to find the right answer (I work mostly in Redhat/CentOS/Fedora and knew the chkconfig). Thanks so much for the helpful post, just wish it was easier to find, lol! Have a great evening!


  • Anonymous

    you are welcome Dan , I hope Google guys see your comment and improve my website ranking :p

  • Anonymous

    Thanks alot! Just what I needed. πŸ™‚

  • Guest

    Β Is now first hit with search: “debian autostart service” πŸ™‚

  • Yes456


  • Elgs

    Actually I’m looking for how to disable autostart.

  • Mike Burroughs

    I would think chkconfig servicename off

Powered by WordPress