PDA

View Full Version : Question on Linux


Krucifyx
Wed 28th Jun '00, 3:42am
I've just setup my first Linux box, using Red Hat 6.2

I was just wondering how I can start up programs on the system boot. So I want the following two programs to start when the computer does:

/usr/local/apache/bin/apachectl start
and
/user/local/mysql/bin/safe_mysqld

How do I do this?

BenchRacer
Thu 29th Jun '00, 2:15am
This is how I do it.


cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/mysql
chmod +x /etc/rc.d/init.d/mysql
/sbin/chkconfig --del mysql
/sbin/chkconfig --add mysql

ln –s /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
pico /etc/rc.d/init.d/httpd
-add these lines to the top of httpd-
# chkconfig: 2345 10 90
# description: Activates/Deactivates Apache Web Server
/sbin/chkconfig –del httpd
/sbin/chkconfig –add httpd




Chad
http://benchracers.net