How to Run Commands Automatically at Linux System Boot Up

Hello,

If you always have to manually run services at every system bootup, do it no more! This article will show you how to automatically run anything at system bootup by adding the execution commands to the /etc/rc.local script. You will need SSH root access.
Difficulty level: Easy

1. Establish a SSH connection and login as root.

2. Open up /etc/rc.local with your favorite command line text editor. In this example, I will use ‘nano’.

nano /etc/rc.local

+To download nano:

yum install nano -y
OR
apt-get install nano

3. For this how to, we want to make the sshd service start automatically, for that, we write the code on the very top.

4. Save with Ctrl+O and Exit nano with Ctrl+W

That is it; reboot your server to test it.

Any question, please let me know!

Best Regards,
Richi
Owner of www.Juapo2Services.com

Looking for quality Linux Web Hosting? Try out Arvixe web hosting and you won’t be disappointed.
Tags: , , , , , , , , , , , , , | Posted under cPanel/Linux Hosting, Linux Server Admin, Linux Usability | RSS 2.0

Author Spotlight

Richi González

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I became a Liaison between Arvixe and Clip-Bucket, so I am here to assist you with anything you need regarding Clip-Bucket or any particular computer-related subject you need. Best Regards, Richi

One Comment on How to Run Commands Automatically at Linux System Boot Up

  1. n0rbertt says:

    You could also do:

    chkconfig sshd on

Leave a Reply

Your email address will not be published. Required fields are marked *


− 1 = 4

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>