LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2005, 01:03 AM   #1
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Rep: Reputation: 0
missing rc.httpd


Ok, i have a very strange question.
I've installed slack10 (a rather basic config) compiled php 4.3.11, and apache 2.0.54..

apache runs great,,, really wonderfully, when i start it manually,
however,
When i to chmod +x /etc/rc.d/rc.httpd i find out there is no spoon,,,, umm,, i mean, there is no rc.httpd....

so i search,,,,,, locate -u,,,, then locate rc.httpd,,,, no signs of the missing file.

that would be bad me thinks.

Anyway, do i have to install the slack packaged apache to get the file, or is there another way to start apache on boot up?

Thanks,
Shawn
 
Old 07-09-2005, 01:21 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Add the line you use to start it manually on /etc/rc.d/rc.local
You could also make your own script based on the one that comes with the Slackware package. If you call it with the same name (/etc/rc.d/rc.httpd) it will be started by the Slackware init scripts.
 
Old 07-09-2005, 01:22 AM   #3
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Original Poster
Rep: Reputation: 0
I found it,,, not the file, but how to make it start up at boot time....

I simply added the line:
/usr/local/apache2/bin/apachectl start

it to rc.local....

This linux stuff is so cool, i'm learning quite a bit,,,,
i think i'll buy a book soon.

be happy!
Shawn
 
Old 07-09-2005, 01:25 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
That file is a part of the Slackware package, not Apache. If you want it then you can extract it from the Slackware package without installing the package. Just make a directory to extract it in and use "tar zxvf apache-x.x.x.tgz". But here it is:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.httpd
#
# Start/stop/restart the Apache web server.
#
# To make Apache start automatically at boot, make this
# file executable:  chmod 755 /etc/rc.d/rc.httpd
#

case "$1" in
   'start')
      /usr/sbin/apachectl start ;;
   'stop')
      /usr/sbin/apachectl stop ;;
   'restart')
      /usr/sbin/apachectl restart ;;
   *)
      echo "usage $0 start|stop|restart" ;;
esac
You'll need to modify it based on where you installed Apache, of course.

Last edited by DaHammer; 07-09-2005 at 01:27 AM.
 
Old 07-09-2005, 01:26 AM   #5
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Original Poster
Rep: Reputation: 0
How would one extract (/etc/rc.d/rc.httpd) from the slackware cd?

i mean, the rc.local works, but learning how to get certain things off the cd's would probably work better (although, i will still buy the book).

Thanks very much for the answer by the way... you linux people rock!

Shawn
 
Old 07-09-2005, 01:29 AM   #6
stlshawn
LQ Newbie
 
Registered: Dec 2004
Location: Missouri, USA
Distribution: Slackware 10 & Vector 3.2
Posts: 20

Original Poster
Rep: Reputation: 0
I keep getting leapfrogged,,,, or you folks are reading my mind
(I've heard of the Jedi like powers of linux gurus,, and i'm beginning to believe the stories).

Anyway,,, thanks so much,,, i'm going to extract the file, print out this post,, and then fashion some sort of lead-lined cap so the linux jedis stop reading my mind.

be happy!
Shawn
 
Old 07-09-2005, 01:40 AM   #7
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Also, another trick. You can extract just the file you want, if you know the name, like so:
Code:
tar zxvf apache-1.3.33-i486-1.tgz etc/rc.d/rc.httpd.new
or

Code:
tar zxvf apache-1.3.33-i486-1.tgz etc/rc.d/*
etc etc etc

And the filelist in MANIFEST.bz2 comes in handy for finding which file is in which package and etc.

Last edited by DaHammer; 07-09-2005 at 01:41 AM.
 
  


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
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
httpd chokes on ScriptAlias line in Apache httpd.conf lhoff Linux - Software 1 07-14-2003 10:32 PM
httpd-2.0.43-1 pk21 Linux - Software 3 02-20-2003 12:33 PM
Many httpd natsudarshan Linux - General 1 12-09-2001 01:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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