LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2004, 03:14 AM   #1
kaguru
LQ Newbie
 
Registered: Jan 2004
Distribution: Redhat 8.0
Posts: 1

Rep: Reputation: 0
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?
 
Old 01-10-2004, 03:28 AM   #2
alar
Member
 
Registered: Sep 2003
Location: Canada
Distribution: CentOS 5.5, Ubuntu 10.04, Linux Mint 11 gnome 64 bit
Posts: 336

Rep: Reputation: 36
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;
 
Old 01-10-2004, 07:59 AM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 06:55 PM
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 02:35 AM
Running scripts on startup darrenjhopkins Linux - Newbie 7 12-09-2004 05:51 AM
Running Scripts/Commands on Startup drknow Linux - Newbie 4 01-09-2004 06:14 AM
startup scripts amphion Linux - Newbie 8 03-28-2003 02:39 PM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration