This small FAQ explain how to make linux start certain service or self made program at the boot time.
Step 1:
Edit /etc/rc.local
This script will hold your personal initialization instructions which will be loaded after all other programs are loaded.
Example:
#!/bin/sh
#
# 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.
touch /var/lock/subsys/local
/usr/local/apache/bin/apachectl
startsslecho Starting Apache ... Felo
service sendmail start
echo Starting Sendmail
I do hope its usefull , its simple but not everybody knows it right ?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment