Forrest logo
back to the update-rc.d tool

update-rc.d:tldr:6799c

update-rc.d: Enable a service.
$ update-rc.d ${mysql} enable
try on your machine

The command "update-rc.d ${mysql} enable" is used to enable the MySQL service to start automatically during system boot.

Here's a breakdown of the command:

  • "update-rc.d" is a command on Linux systems used to manage the initialization scripts or services that start automatically during boot. It is typically used with system services to enable or disable them.
  • "${mysql}" is a parameter or variable that holds the name of the MySQL service. It is likely defined earlier in the script or command line.
  • "enable" is an argument passed to the "update-rc.d" command, indicating that the specified service (${mysql} in this case) should be enabled to start during system boot.

By running this command, the configuration for the MySQL service is updated so that it starts automatically when the system boots up.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the update-rc.d tool