LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-04-2005, 07:39 AM   #1
darklandz
LQ Newbie
 
Registered: Jun 2005
Location: Belgium
Distribution: RedHat 9
Posts: 6

Rep: Reputation: 0
starting script on startup


Hello,

i'm running the apache webserver and more stuff that i dl from hxxp://apachefriends.org. Everything works fine only one thing that i would like to change.

When i startup linux, i need to login and always manual start the apache,msql ... to do that i need to execute : /opt/lampp/lampp start

Is there a way to automate that ?
 
Old 06-04-2005, 10:09 AM   #2
exit3219
Member
 
Registered: May 2005
Location: Moldova
Distribution: Kubuntu
Posts: 199

Rep: Reputation: 30
Do you know anything about runlevels?
There is an init.d script somewhere there which helps you do exactly what you want.
But that depends on what distro do you have. I have Debian, you have RH. I don't know how to do it in RedHat.
 
Old 06-04-2005, 10:22 AM   #3
Kendo1979
Member
 
Registered: Aug 2004
Location: Bandung, Indonesia
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
in rh use chkconfig --level (level number, usually 2345 if you want to start in all level) [service name] on

example for samba

chkconfig --level 345 smb on
 
Old 06-04-2005, 10:52 AM   #4
darklandz
LQ Newbie
 
Registered: Jun 2005
Location: Belgium
Distribution: RedHat 9
Posts: 6

Original Poster
Rep: Reputation: 0
hmm, levels ? This is my second day with Linux so that sound all strange to me.

But i found it ...

i edited the /etc/rc.d/rc.local script and it seems to work, everything gets started before login.
 
Old 06-05-2005, 02:51 AM   #5
exit3219
Member
 
Registered: May 2005
Location: Moldova
Distribution: Kubuntu
Posts: 199

Rep: Reputation: 30
I'm happy you made it work.

Linux rulez! Window$ sux!
 
  


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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
Problems getting a startup script starting at the correct time BrianK SUSE / openSUSE 3 11-13-2005 05:15 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
starting programs on startup -how? br0k3n Linux - General 3 07-22-2004 05:43 PM
Starting Script on startup chrisfirestar Linux - General 5 12-02-2003 12:12 AM


All times are GMT -5. The time now is 04:02 AM.

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