LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   missing rc.httpd (https://www.linuxquestions.org/questions/slackware-14/missing-rc-httpd-341496/)

stlshawn 07-09-2005 01:03 AM

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

gbonvehi 07-09-2005 01:21 AM

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.

stlshawn 07-09-2005 01:22 AM

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.:D

be happy!
Shawn

DaHammer 07-09-2005 01:25 AM

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.

stlshawn 07-09-2005 01:26 AM

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

stlshawn 07-09-2005 01:29 AM

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

DaHammer 07-09-2005 01:40 AM

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.


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