Ref: 08720016
Title: Shutting Down 3+Open on 3Com Dedicated Servers
Date: 2/6/90

Copyright 3Com Corporation, 1991.  All rights reserved.

All 3+Open servers should be shut down gracefully to prevent data
corruption.  The 3+Open documentation does not tell how to do this
on 3Com dedicated servers.

3Com recommends you create a batch file and use the AT scheduler to
perform a graceful server shutdown.  The batch file should make sure
that installed 3Com value-added services such as 3+Open Name, 3+Open
Mail, 3+Open Start, or 3+Open Internet service are stopped before other
services and that they have enough time to perform normal shutdown
procedures and close files.

The LOCINIT.EXE program, normally used to delay activity while the
Locator service initializes, can be used to pause the batch file
while 3Com value-added services complete their shutdown.  Here is a
sample batch file named SHUTDOWN.CMD that uses LOCINIT.EXE:

    @REM SHUTDOWN.CMD
    NET SEND * "GOING DOWN IN ONE MINUTE! UNLINK NOW!!"
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    ECHO ~ Stopping 3MAIL!>LCD$
    NET STOP 3MAIL /Y
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    ECHO ~ Stopping 3NAME!>LCD$
    NET STOP 3NAME /Y
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    ECHO ~ Stopping RDR  !>LCD$
    NET STOP RDR /Y
    ECHO ~ Stopping LAZY !>LCD$
    CACHE /LAZY:*:OFF
    ECHO ~ Stopping CACHE!>LCD$
    CACHE /STOP
    ECHO ~SERVER DEAD!!!!!>LCD$

This batch file sends a broadcast message to users, telling them to
unlink because the server is going down.  Before stopping any service,
a message is sent to the server LCD noting that the service will be
stopped.  For Mail and Name service, LOCINIT.EXE is invoked three times
to ensure sufficient delay for the services to clean up their files.


To shut down your 3+Open server, follow these steps:

1.  Customize the SHUTDOWN.CMD file shown above to include all of the
services on your server.

2.  Put the SHUTDOWN.CMD file in the root directory of your server.

3.  Type the following at the command line to stop the server:

    NET ADMIN \\server /C AT time C:\SHUTDOWN.CMD

Note:  For "time" put in the time (in 24-hour format) you want
SHUTDOWN.CMD to begin.

Do not worry when you see "Locator Initializing...(number)" on the
server LCD.  It means LOCINIT.EXE is counting down to allow Locator
time to initialize.


Substituting SLEEP.EXE for LOCINIT.EXE

If you prefer, a file called SLEEP.EXE can be used instead of
LOCINIT.EXE to pause the SHUTDOWN.CMD file.  Substitute the line
SLEEP 180 for the lines:

    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT
    C:\3OPEN\SERVER\LANMAN\DRIVERS\LOCINIT

The number after SLEEP is the number of seconds you want the batch
file to pause.

A copy of SLEEP.EXE is in the Ask3Com forum, Non-Supported Utilities
library.

