Click to See Complete Forum and Search --> : Boot Query


bassreflex
01-27-2001, 03:33 AM
How can I configure linux to start programs automatically during boot?

MkIII_Supra
01-27-2001, 03:41 AM
Put it in your /etc/rc.local
Here is an example for PortSentry:


# Hard Drive speed tweak
hdparm -c 1 -d 1 -k 1 /dev/hda
hdparm -c 1 -d 1 -k 1 /dev/hdb

# PortSentry StartUp
/usr/local/psionic/portsentry/portsentry -stcp
/usr/local/psionic/portsentry/portsentry -sudp
echo "Port Sentry is now active and on gaurd!"


Okay the BOLD lines are comments, you can tell because of the # symbol. The ITALICS are the path to the executable and any parameters you wish to pass. The BOLD ITALICS are echo commands that will display whatever follows the echo statement. As you can see the text that follows an echo command is in double quotes. I added the hard drive speed tweaks as well.

------------------
The Dragon is swift and powerful. Beware his wrath...
Honor your family and yourself. Speak not out of passion but out of wisdom and temper the fires of war that reside in you, and you shall then reach your full measure as a man of Honor, Courage and Integrity.
http://www.angelfire.com/wa2/MkIIISupra/ (http://www.angelfire.com/wa2/MkIIISupra)


[This message has been edited by MkIII_Supra (edited 27 January 2001).]