Re: [users@httpd] Multiple apache instances

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua & all,

When I specified the configuration file the instance I wanted to kill still didn't stop. In fact, it stopped the other instance! Also, at least on my box, '-k' isn't a valid option. Finally, the error messages I got was:

root:comet:/ #  apachectl -f /usr/local/apache/conf/httpd-oracal.conf stop
usage: /usr/local/apache/bin/apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)

start      - start httpd
startssl   - start httpd with SSL enabled
stop       - stop httpd
restart    - restart httpd if running by sending a SIGHUP or start if
            not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status - dump a short status screen; requires lynx and mod_status enabled graceful - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help       - this screen

usage: /usr/local/apache/bin/apachectl (start|stop|restart|fullstatus|status|graceful|configtest|help)

start      - start httpd
startssl   - start httpd with SSL enabled
stop       - stop httpd
restart    - restart httpd if running by sending a SIGHUP or start if
            not running
fullstatus - dump a full status screen; requires lynx and mod_status enabled
status - dump a short status screen; requires lynx and mod_status enabled graceful - do a graceful restart by sending a SIGUSR1 or start if not running
configtest - do a configuration syntax test
help       - this screen

/usr/local/apache/bin/apachectl stop: httpd stopped


Joshua Slive wrote:

On 8/15/05, Spike Burkhardt <burkhardt.richard@xxxxxxxxxxxxx> wrote:
All,

I have two apache instances running.  Is there a way to kill just 1
instance?  To be more specific, I have 1 startup file with the standard
startup.  In the httpd.conf file, it specifies:

PidFile /usr/local/apache/logs/httpd.pid

In the second startup file the line that starts the server is:

httpd - f /usr/local/apache/conf/httpd-oracal.conf start
and the PidFile line reads:

PidFile /usr/local/apache/logs/httpd-oracal.pid.

Can I tell apache only to stop this instance or should I write a script
to do it?

Either apachectl -f /usr/local/apache/conf/httpd-oracal.conf -k stop
or just
kill `cat /usr/local/apache/logs/httpd-oracal.pid`

Joshua.

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

begin:vcard
fn:Spike Burkhardt
n:Burkhardt;Spike
adr;dom:;;3825 Fabian Way;Palo Alto;Ca;94303
email;internet:burkhardt.richard@xxxxxxxxxxxxx
title:Unix Systems Engineer
tel;work:650-852-4787
tel;pager:877-720-8146
x-mozilla-html:TRUE
version:2.1
end:vcard


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux