You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alex Varju <va...@antiflux.org> on 2002/12/19 18:22:33 UTC

RE: [users@httpd] Win32: new reaction on user logoff in Apache 1. 3.27

We found this to be a problem in our environment, too.  We disabled the
shutdown by making the following change:

Index: src/os/win32/service.c
===================================================================
RCS file: /webct1/cvsroot/external/apache/src/os/win32/service.c,v
retrieving revision 1.1.1.6
diff -u -p -r1.1.1.6 service.c
--- src/os/win32/service.c      30 Mar 2002 21:39:59 -0000      1.1.1.6
+++ src/os/win32/service.c      19 Dec 2002 17:21:05 -0000
@@ -206,9 +206,7 @@ static BOOL CALLBACK ap_control_handler(
             return TRUE;

         case CTRL_LOGOFF_EVENT:
-            if (!die_on_logoff)
-                return TRUE;
-            /* or fall through... */
+            return TRUE;

         case CTRL_CLOSE_EVENT:
         case CTRL_SHUTDOWN_EVENT:

Alex.

On Thu, 19 Dec 2002, Boehme, Alfred wrote:

> Oh, sorry, I mean, a users logs off from windows on the system,
> where apache is running. I don't mean the logon/logoff over
> HTTP.
> Meanwhile, I think, windows sends some signals to all running processes,
> if a logoff happens. But why does apache react now to such a signal and not in older
> versions ?
> Is it possible to suppress this reaction to the logoff signal ? (If this really is
> the reason)
>
> Thanks
>
> Alfred
>
>
> > -----Original Message-----
> > From: Boyle Owen [mailto:Owen.Boyle@swx.com]
> > Sent: Donnerstag, 19. Dezember 2002 11:13
> > To: users@httpd.apache.org
> > Subject: RE: [users@httpd] Win32: new reaction on user logoff
> > in Apache
> > 1.3.27
> >
> >
> > What do you mean by a "user logoff" - HTTP is connectionless,
> > no-one is
> > ever logged in...
> >
> > >-----Original Message-----
> > >From: Boehme, Alfred [mailto:Alfred.Boehme@fujitsu-siemens.com]
> > >Sent: Donnerstag, 19. Dezember 2002 11:03
> > >To: 'users@httpd.apache.org'
> > >Subject: [users@httpd] Win32: new reaction on user logoff in Apache
> > >1.3.27
> > >
> > >
> > >Hello,
> > >
> > >in W2000 and NT we start apache.exe out of our own windows
> > >service at system startup
> > >time with local system account.
> > >Up to 1.3.26, apache.exe continued to run, even if a user
> > >logged on and off.
> > >In 1.3.27, if a user logs off, apache.exe stops with the
> > >message in error.log:
> > >Apache server shutdown initiated...
> > >
> > >Is this a bug or a feature ? How could we avoid that ?
> > >
> > >Thanks in advance
> > >
> > >Alfred
> > >
> > >
> > >---------------------------------------------------------------------
> > >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
> > >
> > >
> >
> > This message is for the named person's use only. It may contain
> > confidential, proprietary or legally privileged information. No
> > confidentiality or privilege is waived or lost by any mistransmission.
> > If you receive this message in error, please notify the
> > sender urgently
> > and then immediately delete the message and any copies of it from your
> > system. Please also immediately destroy any hardcopies of the message.
> > You must not, directly or indirectly, use, disclose,
> > distribute, print,
> > or copy any part of this message if you are not the intended
> > recipient.
> > The sender's company reserves the right to monitor all e-mail
> > communications through their networks. Any views expressed in this
> > message are those of the individual sender, except where the message
> > states otherwise and the sender is authorised to state them to be the
> > views of the sender's company.
> >
> > ---------------------------------------------------------------------
> > 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
> >
>
> ---------------------------------------------------------------------
> 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
>
>


---------------------------------------------------------------------
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] Win32: new reaction on user logoff in Apache 1. 3.27

Posted by Alex Varju <va...@antiflux.org>.
On Thu, 19 Dec 2002, Jacob Coby wrote:
> > We found this to be a problem in our environment, too.  We disabled the
> > shutdown by making the following change:
>
> Wouldn't it be better to figure out why die_on_logoff == TRUE?
>
> You are probably running Apache from the command line instead of as a
> service.  Install and run it as a service, and you won't have this problem.

In our case running Apache as a service isn't an option.  Our own service
starts up and maintains multiple processes, one of which is Apache.  But
yes, most people could probably run it as a service. :)

Alex.


---------------------------------------------------------------------
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] Win32: new reaction on user logoff in Apache 1. 3.27

Posted by Jacob Coby <jc...@listingbook.com>.
> We found this to be a problem in our environment, too.  We disabled the
> shutdown by making the following change:

Wouldn't it be better to figure out why die_on_logoff == TRUE?

You are probably running Apache from the command line instead of as a
service.  Install and run it as a service, and you won't have this problem.

-Jacob


---------------------------------------------------------------------
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