---
title: Scheduling a server shutdown
description: Schedule a PingDirectory server shutdown using the stop-server command with the --stopTime option.
component: pingdirectory
version: 11.0
page_id: pingdirectory:installing_the_pingdirectory_suite_of_products:pd_ds_schedule_server_shutdown
canonical_url: https://docs.pingidentity.com/pingdirectory/11.1/installing_the_pingdirectory_suite_of_products/pd_ds_schedule_server_shutdown.html
llms_txt: https://docs.pingidentity.com/pingdirectory/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2026-08-26T00:00:00Z
superseded_by: https://docs.pingidentity.com/pingdirectory/11.1/installing_the_pingdirectory_suite_of_products/pd_ds_schedule_server_shutdown.html
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
---

# Scheduling a server shutdown

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

## About this task

The following step applies to PingDirectory, PingDirectoryProxy, and PingDataSync.

## Steps

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

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

  ### Example:

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