Re: Running NCSA httpd server on OSF/1 v3.0

From: Henry Cheung, Digital Equipment Singapore <henry_at_zpac20.zpo.dec.com>
Date: Fri, 07 Apr 95 16:40:25 +0800

Hi,

I don't fully I understand your question, do you want to be
automatically started at startup or not. If you do, the script below
works for me. Put it in /sbin/init.d/httpd and link /sbin/rc3.d/S99.1httpd
into it.

To start by hand just do
        /sbin/init.d/httpd start
To stop by hand just do
        /sbin/init.d/httpd stop

rgds

henry

Your message dated: Thu, 06 Apr 95 16:14:00 PDT
>
>Good afternoon,
>
> I have an Alpha 2100 server with NCSA httpd on it. I want to start the
>server without
>putting the file in inet.d. I created a S96httpd shell and it prints out the
>two echo statements
>before and after the actual command but doesn't start the command... Is
>there anyone out there doing this who would not mind sharing their shell
>file....?
>
>
> Robert

---
Henry A. Cheung                  E-Mail : henry_at_zpac20.zpo.dec.com
UNIX Sales Support               Phone  : (065)2907716
Digital Equipment Singapore      FAX    : (065)2986493

#!/sbin/sh
PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/etc/httpd
export PATH
case "$1" in
'start')
        pid=`/bin/ps -e | grep /usr/local/etc/httpd/httpd | grep -v grep | sed -e 's/^  *//' -e 's/ .*//' | head -1`
        if [ "X$pid" = "X" ]
        then
                if /usr/local/etc/httpd/httpd; then
                        echo "httpd www services is started."
                else
                        echo "Unable to start httpd www services"
                fi
        fi
        ;;
'stop')
        pid=`/bin/ps -e | grep /usr/local/etc/httpd/httpd | grep -v grep | sed -e 's/^  *//' -e 's/ .*//' | head -1`
        if [ "X$pid" != "X" ]
        then
                /bin/kill $pid
        fi
        ;;
*)
        echo "usage: $0 {start|stop}"
        ;;
esac
Received on Fri Apr 07 1995 - 04:42:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT