Contents tagged with startup service

  • 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:

    vim /etc/rc.d/rc.local

    sudo dhclient

    sudo systemctl start docker

    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. more