LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   running scripts on startup (https://www.linuxquestions.org/questions/linux-newbie-8/running-scripts-on-startup-133305/)

kaguru 01-10-2004 02:14 AM

running scripts on startup
 
Hi,
I've spent the last week setting up a computer on Redhat 8, with some difficulty considering my newness to the Linux world. Anyway, I've been able to get my alpha wireless driver to work, and I successfully set up a web server using Apache 2. Problem is, when I restart the computer, I have to go through a number of steps manually just to return my computer to the condition it was last in. I have to run a script for the driver and I have to run apachect1 to start the webserver.

Upon advice from someone who was helping me with the wireless nic, I added the path for the driver script to the /etc/rc.d/rc.local file. This did not work. I can't really say much more than that, since I don't know how to access the relevant logs if there are any.

Can anyone help me understand how to run scripts on startup?

alar 01-10-2004 02:28 AM

Do a man on chkconfig.
chkconfig - updates and queries runlevel information for system ser-
vices

The name of all of the services can be found with
chkconfig --list;

aqoliveira 01-10-2004 06:59 AM

Howzit

I'm sure the driver is a module that has to be run for the hardware to be seen normally the file will be (abc.o) . To load this perminate onto the system use the cmd modeprobe (name of driver file.o). For the apache prob check runlevels with chkconfig cmd and see if u have to enable the service to be run upon boot up, if it doen´t appear then add the full path to the cmd to the /etc/rc.d/rc.local file. Temember FULL PATH.

chow


All times are GMT -5. The time now is 03:48 AM.