---
title: Configuring maximum shutdown time
description: The PingDirectory server provides an option for administrators to set a maximum time for a shutdown process to take.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_config_max_shutdown_time
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_config_max_shutdown_time.html
revdate: September 13, 2023
section_ids:
  before-you-begin: Before you begin
  about-this-task: About this task
  steps: Steps
  choose-from: Choose from:
---

# Configuring maximum shutdown time

The PingDirectory server provides an option for administrators to set a maximum time for a shutdown process to take.

## Before you begin

During shutdown, some database checkpointing and cleaning threads might remain active even after the default time period on systems with large or busy database backends. If checkpointing or cleaning is aborted prematurely, it can lead to significantly longer startup times for the PingDirectory server. When a shutdown process is initiated, the server begins stopping all of its internal components and waits up to 5 minutes for all threads to complete before exiting.

## About this task

Use the `dsconfig` tool to configure the maximum shutdown time to allow database operations to complete.

## Steps

* To increase the maximum shutdown time for your system, choose from one of the following options.

  ### Choose from:

  * Run the `dsconfig` tool.

    |   |                                                                                                                                                                                                                                                                                                                                          |
    | - | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    |   | The following command increases the maximum shutdown time from 5 minutes to 6 minutes. The command allows time values of w (weeks), d (days), h (hours), m (minutes), s (seconds), ms (milliseconds).Include the LDAP or LDAPS connection parameters, such as host name, port, bindDN, and bindDN password, with the `dsconfig` command. |

    ```shell
    $ bin/dsconfig set-global-configuration-prop --set "maximum-shutdown-time:6 m"
    ```

  * Change the `maximum-shutdown-time` property using the `dsconfig` tool in interactive mode. From the main menu, select **Global Configuration**, and then select the option to display advanced properties.
