I'm running CentOS 7.2 on my Cloud Account and following some tutorials to install Grafana. I've almost finished install but got stuck when they asked me to execute this command which used to start the service on boot.

update-rc.d grafana-server defaults 95 10

Of course, i did it and error came out: update-rc.d command not found. I tried to install it with yum but it didn't work too. Is there anyway to "execute" this command or just convert it into chkconfig which i could execute it right away without any trouble?

1 Answer 1


update-rc.d doesn't exist on Red Hat distros such as Fedora/CentOS/etc. The equivalent would be to use chkconfig, eg.

chkconfig grafana-server on

By default, chkconfig assumes levels 2345. Any runlevels not specified as on, will be marked as off; levels 016 by default. So you can specify runlevels:

chkconfig --level 345 grafana-server on
  • I didn't know about that :D Thank you.
    – The One
    May 12, 2016 at 10:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .