• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / Article / Linux/Unix/BSD / Run scripts at system startup on Linux

Run scripts at system startup on Linux

This post looks at how to run additional scripts or applications at system startup / system boot up on Linux. I can confirm that this works on CentOS (and should therefore work on Red Hat Enterprise Linux from which is it derived, and Fedora and Fedora based distros) and Debian (and therefore on Debian derived distros).

After all the other processes are started by the init command at boot time, the following script is run on Red Hat / CentOS based systems:

/etc/rc.d/rc.local

And this script on Debian based systems:

/etc/rc.local

You can put your additional commands or scripts to run into this script with the knowledge that everything else has already started up, and doesn’t require the complex initialisation scripts that appear in the /etc/rc.d/init.d or /etc/init.d directory.

Check Out These Related posts:

  1. Modifying the Linux Grub boot loader’s options
  2. Get MySQL status information from the command line
  3. How to use jigdo-lite
  4. Running PHP scripts as shell scripts

Filed Under: Linux/Unix/BSD

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap