Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Possible Duplicate:
Bash Script on Startup? (Linux)

I want to run some commands at boot time.

share|improve this question

marked as duplicate by Gilles, Caleb, echox, Michael Mrozek May 16 '11 at 14:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
possible duplicate of Bash Script on Startup? (Linux); see also Create services in Linux (Start up in linux) –  Gilles May 16 '11 at 11:44
add comment

1 Answer 1

Use /etc/rc.local

On my system, the comment header says this:

# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
share|improve this answer
    
This is for Debian and Debian-derived distributions such as Ubuntu. Other distros might be different. –  ultrasawblade May 16 '11 at 13:40
1  
It works on CentOS/RHEL as well. –  jonescb May 16 '11 at 14:00
    
Thanks, didn't know that. –  ultrasawblade May 16 '11 at 14:02
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.