Autorun in Linux

To set a script to start at boot in CentOS, add it into /etc/rc3.d/S99local.

For example:

/root/./start.sh

This script will be executed *after* all the other init scripts.

Was this answer helpful?

 Print this Article

Also Read

nginx

How to install nginx on Centos Add nginx repo first. To add it, create the file...

Fail2ban

Fail2ban scans log files (e.g. /var/log/apache/error_log) and bans IPs that show the...

Changing ssh port

How to change ssh port. Open the file /etc/ssh/sshd_config with your favourite text...

Adding a new disk drive to Centos 6

Installing a new HDD The disk drives in Centos is named hd* or sd*. In system with only one...

Clear swap in Centos

Print memory usage [root@localhost]# free -m              total       used       free...