You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Justin Conover <ju...@gmail.com> on 2005/06/03 16:14:39 UTC

[users@httpd] settings in /etc/init.d/httpd ?

other than these.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/sbin/apachectl
httpd=${HTTPD-/usr/sbin/httpd}
prog=httpd
RETVAL=0



Is there a varible/setting to add were your config/pid is located?

for example.

config=${CONFIG-/tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf}
pidfile=${PIDFILE-/tools/httpd/dvmk0023-Z5S-Secure/run/httpd.pid}

Something like that, only this doesn't work.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] settings in /etc/init.d/httpd ?

Posted by Justin Conover <ju...@gmail.com>.
On 6/3/05, Justin Conover <ju...@gmail.com> wrote:
> On 6/3/05, Dan Mahoney, System Admin <da...@prime.gushi.org> wrote:
> > On Fri, 3 Jun 2005, Justin Conover wrote:
> >
> > the httpd is defined interally to the apachectl script, as well as in your
> > httpd.conf
> >
> > -Dan
> >
> So are you saying I can edit the apahectl?
> 
> Here is the full explanation I can give you, we need multiple
> instances of apache on a server, without using "virtual servers."
> 
> So what I have done is created different httpd.conf (with other
> trimmings in /tools/httpd/<server-application-name.  I have given them
> there own startup scrips that call
> 
> apachetcl -f <path-to-httpd.conf> -k start
> 
> This all works fine and dandy expect, when we add something like
> siteminder into the mix and need to use /usr/sbin/envvars.  The SA's
> don't want us to be able to edit that file.
> 
> So what I have done was created a /etc/sysconfig/siteminder and
> /etc/init.d/httpd-server-app-name(cp of httpd) except edited that to
> use /etc/sysconfig/siteminder if it is there.  I have been sucsessful
> at starting it with adding -f <path-to-conf> after
> 
> httpd=${HTTPD-/usr/sbin/httpd.worker}
> 
> or in the start section
> 
> start() {
>         echo -n $"Starting $prog: "
>         check13 || exit 1
>         daemon $httpd -f /tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf
> 
> Which works, but stopping it is another story, it will hang and other
> things that don't seem to be working correctly.  Maybe someone has a
> suggestion on a way the stop section should look?
> 
> 
> This info might help
> 
> conf=/tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf
> pid=/tools/httpd/dvmk0023-Z5S-Secure/run/httpd.pid
> 
> Thank you,
> 

Oh, the reason I didn't use "virtuals" is we need to be able to
start/stop specific instances.  From my understanding this isn't
possible in the VirtualHost section, is that incorrect?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] settings in /etc/init.d/httpd ?

Posted by Justin Conover <ju...@gmail.com>.
On 6/3/05, Dan Mahoney, System Admin <da...@prime.gushi.org> wrote:
> On Fri, 3 Jun 2005, Justin Conover wrote:
> 
> the httpd is defined interally to the apachectl script, as well as in your
> httpd.conf
> 
> -Dan
> 
So are you saying I can edit the apahectl?

Here is the full explanation I can give you, we need multiple
instances of apache on a server, without using "virtual servers."

So what I have done is created different httpd.conf (with other
trimmings in /tools/httpd/<server-application-name.  I have given them
there own startup scrips that call

apachetcl -f <path-to-httpd.conf> -k start 

This all works fine and dandy expect, when we add something like
siteminder into the mix and need to use /usr/sbin/envvars.  The SA's
don't want us to be able to edit that file.

So what I have done was created a /etc/sysconfig/siteminder and
/etc/init.d/httpd-server-app-name(cp of httpd) except edited that to
use /etc/sysconfig/siteminder if it is there.  I have been sucsessful
at starting it with adding -f <path-to-conf> after

httpd=${HTTPD-/usr/sbin/httpd.worker}

or in the start section

start() {
        echo -n $"Starting $prog: "
        check13 || exit 1
        daemon $httpd -f /tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf

Which works, but stopping it is another story, it will hang and other
things that don't seem to be working correctly.  Maybe someone has a
suggestion on a way the stop section should look?


This info might help

conf=/tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf
pid=/tools/httpd/dvmk0023-Z5S-Secure/run/httpd.pid

Thank you,

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] settings in /etc/init.d/httpd ?

Posted by "Dan Mahoney, System Admin" <da...@prime.gushi.org>.
On Fri, 3 Jun 2005, Justin Conover wrote:

the httpd is defined interally to the apachectl script, as well as in your 
httpd.conf

-Dan

> other than these.
>
> # Path to the apachectl script, server binary, and short-form for messages.
> apachectl=/usr/sbin/apachectl
> httpd=${HTTPD-/usr/sbin/httpd}
> prog=httpd
> RETVAL=0
>
>
>
> Is there a varible/setting to add were your config/pid is located?
>
> for example.
>
> config=${CONFIG-/tools/httpd/dvmk0023-Z5S-Secure/conf/httpd.conf}
> pidfile=${PIDFILE-/tools/httpd/dvmk0023-Z5S-Secure/run/httpd.pid}
>
> Something like that, only this doesn't work.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--

"No mowore webooting!!!"

-Paul, 10-16-99, 10 PM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org