tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Re: Running NCSA httpd server on OSF/1 v3.0
@ 1995-04-07  8:40 Henry Cheung, Digital Equipment Singapore
  0 siblings, 0 replies; 2+ messages in thread
From: Henry Cheung, Digital Equipment Singapore @ 1995-04-07  8:40 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* Running NCSA httpd server on OSF/1 v3.0
@ 1995-04-06 16:14 Sarao, Robert
  0 siblings, 0 replies; 2+ messages in thread
From: Sarao, Robert @ 1995-04-06 16:14 UTC (permalink / raw)
  To: tru64-unix-managers


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-04-07  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-07  8:40 Running NCSA httpd server on OSF/1 v3.0 Henry Cheung, Digital Equipment Singapore
  -- strict thread matches above, loose matches on Subject: below --
1995-04-06 16:14 Sarao, Robert

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