LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-23-2004, 12:26 AM   #1
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
witch are the startup scripts in linux?


Can anybody please help me with this.. I installed Apache from source and now i would like it to run when linux starts. Can you please tell me how the script is named and how to do it (it's probably commented well enough but anyway)

Consider me being NOT a very big n00b (been here about 3 months by now dug in /etc, it's just the t i haven't found the name of it after 1 hour of searching here in the forum)

Thanks

Atom
 
Old 04-23-2004, 12:36 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
It depends on the distro, for Redhat it should be /etc/rc.d/rcX.d with X corresponding to the runlevel.
I'm not exact sure whether Apache source provides a startup script. you may have to write one yourself(that's why installing a precompiled package provided by your distro is usually an better idea) to start Apache manually you can run
Code:
apachectl start
 
Old 04-23-2004, 06:59 AM   #3
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Original Poster
Rep: Reputation: 31
is there a file you can enter commands to run when linux is started in any runmode (xcept 6, ofcourse)? Because i can see mail services and such always start on startup, i want to like add apache, mysql, and a few more things to start on startup and then when I login to kde (if runmode is 5 only) to start like gkrellm and basKet.
 
Old 04-23-2004, 07:40 AM   #4
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
rc.local

in etc/rc.d

httpd is usually started before that though.
 
Old 04-24-2004, 02:29 AM   #5
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Original Poster
Rep: Reputation: 31
thanks, can you just type the commands in there or is there a particular syntax to it?
 
Old 04-24-2004, 02:55 AM   #6
Muzzy
Member
 
Registered: Mar 2004
Location: Denmark
Distribution: Gentoo, Slackware
Posts: 333

Rep: Reputation: 30
In rc.local... just type the commands in. They will be executed at startup as if you were logged on as root and typed them in yourself.
 
Old 04-24-2004, 03:39 AM   #7
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Original Poster
Rep: Reputation: 31
thanks. I appreciate it. It's done.
 
Old 04-24-2004, 07:40 AM   #8
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
If you compile a server from source, be sure to check that it is set up in logrotate (httpd file in /etc/logrotate.d). Otherwise the log files will just get larger over time until there's no more disk space.
 
Old 04-29-2004, 03:17 PM   #9
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Original Poster
Rep: Reputation: 31
note taken. I don't plan on having a very buisy server but hey... Always could use more diskspace!
 
  


Reply



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
witch musik does a linux geek prefer? NL-Stitch General 47 04-08-2005 10:25 AM
witch linux to install? maxiflo Linux - General 4 09-30-2004 06:32 AM
distro's table .. witch linux best suited? NL-Stitch Linux - Distributions 4 08-01-2004 03:15 PM
Linux Startup Scripts for Oracle Application & Database research2004 Linux - Newbie 1 04-14-2004 05:22 AM
Witch linux distro? Devboy Linux - Distributions 4 12-11-2003 07:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:09 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
Open Source Consulting | Domain Registration