Re: Windows shutdown with 4D Server running as a service
Hi, Even when initiated from the 4D-end, it might not always be a graceful exit because the service times out when trying to stop. Had encountered this on more than a few occasions with a client, end up we had to rebuild the “damaged” data file and indices. The error message at end of repair is something to the effect that data flushing did not complete (the database application has a 24/7 listener that receives incoming messages from other systems). Sent: Thursday, August 8, 2019 1:20 PM To: s.o...@the-aquila-group.com <mailto:s.o...@the-aquila-group.com>; 4D iNug Technical <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> Subject: Re: Windows shutdown with 4D Server running as a service I am assuming that your Administrative function runs on a client? Sounds like a good idea, but wondering if it might be a bit over kill for me. Bottom line is that at some point the server is quit without regard to who is logged in at the time whether done with a quit command or issued by the Windows service. The admin can see who is logged by firing up a client on the server and opening the Administration window before shutting down the computer or shutting down the service. If after hours the admin may have no choice but to let 4D server boot the clients off. > From what I gather from the responses, it really does not matter as for as 4D > is concerned, it will “gracefully" quit any 4D client hanger ons before > quitting no matter how it is told to quit. There should never be any damage > to the data. Thanks to those who responded. John ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Windows shutdown with 4D Server running as a service
John, You need to be very careful on a service shutdown that you did not initiate, meaning the OS initiated it, or someone went to the "Services" control panel and told it to shut down. As was mentioned earlier, it will shut down in 60 seconds no matter what, even if your clients are not ready to be shut down. We have this issue with every client because we simply cannot get certain clients to gracefully shutdown in 60 seconds or less...just not possible. As a result, we want things controlled via an interface on our side, and we also educate the IT organization on how they have to shut down our system. Best, Steve * Stephen J. Orth The Aquila Group, Inc. Office: (608) 834-9213 P.O. Box 690 Mobile: (608) 347-6447 Sun Prairie, WI 53590 E-Mail: s.o...@the-aquila-group.com * -Original Message- From: JOHN BAUGHMAN Sent: Thursday, August 8, 2019 1:20 PM To: s.o...@the-aquila-group.com; 4D iNug Technical <4d_tech@lists.4d.com> Subject: Re: Windows shutdown with 4D Server running as a service I am assuming that your Administrative function runs on a client? Sounds like a good idea, but wondering if it might be a bit over kill for me. Bottom line is that at some point the server is quit without regard to who is logged in at the time whether done with a quit command or issued by the Windows service. The admin can see who is logged by firing up a client on the server and opening the Administration window before shutting down the computer or shutting down the service. If after hours the admin may have no choice but to let 4D server boot the clients off. From what I gather from the responses, it really does not matter as for as 4D is concerned, it will “gracefully" quit any 4D client hanger ons before quitting no matter how it is told to quit. There should never be any damage to the data. Thanks to those who responded. John ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Windows shutdown with 4D Server running as a service
I am assuming that your Administrative function runs on a client? Sounds like a good idea, but wondering if it might be a bit over kill for me. Bottom line is that at some point the server is quit without regard to who is logged in at the time whether done with a quit command or issued by the Windows service. The admin can see who is logged by firing up a client on the server and opening the Administration window before shutting down the computer or shutting down the service. If after hours the admin may have no choice but to let 4D server boot the clients off. From what I gather from the responses, it really does not matter as for as 4D is concerned, it will “gracefully" quit any 4D client hanger ons before quitting no matter how it is told to quit. There should never be any damage to the data. Thanks to those who responded. John > On Aug 8, 2019, at 3:36 AM, Stephen J. Orth via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > John, > > In our OEM system, which always runs as a service on Windows, we created an > Administrative function specifically designed to shutdown the Server. This > walks the Admin through a series of "checks" just to be sure they want to > shut down, and how long they want to provide users. Once they accept this, > we log it into the database and then execute a method on the Server using the > QUIT 4D command. > > Hope that helps... > > Best, > > > Steve > > * > Stephen J. Orth > The Aquila Group, Inc. Office: (608) 834-9213 > P.O. Box 690 Mobile: (608) 347-6447 > Sun Prairie, WI 53590 > > E-Mail: s.o...@the-aquila-group.com > * >>> On Aug 8, 2019, at 01:14, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> >>> wrote: >>> >>> What is the best practice for shutting down a windows computer when 4D >>> Server is running as a service? >>> >>> I have been opening the administration window too see if there are any >>> users connected. If so, I have been disconnecting them before shutting down >>> the computer. >>> >>> Just shutting down the computer seems to work as well, but what does 4D >>> server do in this case? >>> >>> Thanks, >>> >>> John >>> >>> >>> >>> John Baughman >>> Kailua, Hawaii >>> (808) 262-0328 >>> john...@hawaii.rr.com > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
RE: Windows shutdown with 4D Server running as a service
John, In our OEM system, which always runs as a service on Windows, we created an Administrative function specifically designed to shutdown the Server. This walks the Admin through a series of "checks" just to be sure they want to shut down, and how long they want to provide users. Once they accept this, we log it into the database and then execute a method on the Server using the QUIT 4D command. Hope that helps... Best, Steve * Stephen J. Orth The Aquila Group, Inc. Office: (608) 834-9213 P.O. Box 690 Mobile: (608) 347-6447 Sun Prairie, WI 53590 E-Mail: s.o...@the-aquila-group.com * >> On Aug 8, 2019, at 01:14, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> >> wrote: >> >> What is the best practice for shutting down a windows computer when 4D >> Server is running as a service? >> >> I have been opening the administration window too see if there are any users >> connected. If so, I have been disconnecting them before shutting down the >> computer. >> >> Just shutting down the computer seems to work as well, but what does 4D >> server do in this case? >> >> Thanks, >> >> John >> >> >> >> John Baughman >> Kailua, Hawaii >> (808) 262-0328 >> john...@hawaii.rr.com ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Windows shutdown with 4D Server running as a service
Shouldn’t you first stop the service, which will quit 4D Regards Chuck Chuck Miller Voice: (617) 739-0306 Informed Solutions, Inc. Fax: (617) 232-1064 mailto:cjmillerinformed-solutions.com Brookline, MA 02446 USA Registered 4D Developer Providers of 4D and Sybase connectivity http://www.informed-solutions.com This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. > On Aug 8, 2019, at 8:03 AM, Tom Benedict via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Hi John, > > I believe that 4D Server does a 1 minute countdown when downing while running > as a service, so that should notify any connected users. At least that’s what > it did when I tested NET STOP and NET START some years ago. I don’t know > whether that also happens when downing Windows. I would hope so. Do you see > any evidence of that on the client? > > Tom Benedict > >> On Aug 8, 2019, at 01:14, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> >> wrote: >> >> What is the best practice for shutting down a windows computer when 4D >> Server is running as a service? >> >> I have been opening the administration window too see if there are any users >> connected. If so, I have been disconnecting them before shutting down the >> computer. >> >> Just shutting down the computer seems to work as well, but what does 4D >> server do in this case? >> >> Thanks, >> >> John >> >> >> >> John Baughman >> Kailua, Hawaii >> (808) 262-0328 >> john...@hawaii.rr.com >> >> ** >> 4D Internet Users Group (4D iNUG) >> Archive: http://lists.4d.com/archives.html >> Options: https://lists.4d.com/mailman/options/4d_tech >> Unsub: mailto:4d_tech-unsubscr...@lists.4d.com >> ** > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: Windows shutdown with 4D Server running as a service
Hi John, I believe that 4D Server does a 1 minute countdown when downing while running as a service, so that should notify any connected users. At least that’s what it did when I tested NET STOP and NET START some years ago. I don’t know whether that also happens when downing Windows. I would hope so. Do you see any evidence of that on the client? Tom Benedict > On Aug 8, 2019, at 01:14, JOHN BAUGHMAN via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > What is the best practice for shutting down a windows computer when 4D Server > is running as a service? > > I have been opening the administration window too see if there are any users > connected. If so, I have been disconnecting them before shutting down the > computer. > > Just shutting down the computer seems to work as well, but what does 4D > server do in this case? > > Thanks, > > John > > > > John Baughman > Kailua, Hawaii > (808) 262-0328 > john...@hawaii.rr.com > > ** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** ** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **