tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Henry Cheung, Digital Equipment Singapore" <henry () zpac20 ! zpo ! dec ! com>
To: tru64-unix-managers
Subject: Re: Running NCSA httpd server on OSF/1 v3.0
Date: Fri, 07 Apr 1995 08:40:25 +0000	[thread overview]
Message-ID: <96075319106407.tru64-unix-managers.marc@archive.invalid> (raw)

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@zpac20.zpo.dec.com
UNIX Sales Support               Phone  : (065)2907716
Digital Equipment Singapore      FAX    : (065)2986493
\f
#!/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

             reply	other threads:[~1995-04-07  8:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-04-07  8:40 Henry Cheung, Digital Equipment Singapore [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-04-06 16:14 Running NCSA httpd server on OSF/1 v3.0 Sarao, Robert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox