From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319106407.tru64-unix-managers.marc@archive.invalid> From: "Henry Cheung, Digital Equipment Singapore" Date: Fri, 07 Apr 1995 08:40:25 +0000 To: tru64-unix-managers Subject: Re: Running NCSA httpd server on OSF/1 v3.0 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319106407 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 #!/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