Scheduling a server shutdown - PingDirectory - 9.3

PingDirectory 9.3

bundle
pingdirectory-93
ft:publication_title
PingDirectory 9.3
Product_Version_ce
PingDirectory 9.3 (Latest)
category
Product
pd-93
pingdirectory
ContentType_ce

You can schedule a server shutdown using the bin/stop-server command with the --stopTime YYYYMMDDhhmmss option.

The following step applies to PingDirectory, PingDirectoryProxy, and PingDataSync.
Run the bin/stop-server command with the --stopTime YYYYMMDDhhmmss option.

The server schedules the shutdown and sends a notification to the server.out log file. The following example sets up a shutdown task that is scheduled to be processed on June 6, 2023 at 8:45 A.M. CDT. The server uses the UTC time format if the provided timestamp includes a trailing “Z”, for example, 20120606134500Z. The command also uses the --stopReason option, which writes the reason for the shutdown to the logs.

Note:

The bin/stop-server command must be run with the --task argument. If this argument is not provided, an error message displays.

$ bin/stop-server --stopTime 20230606134500Z --task --port 1389 \
  --bindDN "uid=admin,dc=example,dc=com" --bindPassword secret \ 
  --stopReason "Scheduled offline maintenance"