Execute Command On Linux Start Up Reboot


Hello everybody,

recently I had a need to configure CentOS edition of Linux.

One of the tasks that I need to accomplish after each CentOS reboot is turning of ip receival. This can be done with the following command:


Another part that I also needed was starting up of docker daemon. Docker daemon can be started in the following way:

After repeating it more then three times I've decided to ask CentOS to execute it instead of me. This can be done in the following way:

  1. vim /etc/rc.d/rc.local
  2. sudo dhclient
  3. sudo systemctl start docker
  4. execute chmod +x /etc/rc.d/rc.local

So, in case if you need to run something on start of system, then you know where to move.

No Comments

Add a Comment


Comments are closed