# How to Schedule Nightly Restart or Shutdown of io.Connect Desktop

**URL:** <https://community.interop.io/t/how-to-schedule-nightly-restart-or-shutdown-of-io-connect-desktop/617>\
**Category:** io.Connect Desktop\
**Tags:** FAQs, iocd-10, iocd-9\
**Created:** [July 6, 2026, 7:38am UTC](https://community.interop.io/t/how-to-schedule-nightly-restart-or-shutdown-of-io-connect-desktop/617 "2026-07-06T07:38:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toni.petrov](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.interop.io/toni.petrov/32/17_2.png) [@toni.petrov](https://community.interop.io/u/toni.petrov)\
**Post date:** [July 6, 2026, 7:38am UTC](https://community.interop.io/t/how-to-schedule-nightly-restart-or-shutdown-of-io-connect-desktop/617/1 "2026-07-06T07:38:19Z")

</div>

If you want to automatically restart or shut down io.Connect Desktop on a schedule, for example, a nightly restart to free up resources, here’s how:

## Built-In Scheduled Restart & Shutdown (io.Connect Desktop 9.4+)

Since **io.Connect Desktop 9.4** , you can schedule periodic restart or shutdown of the platform directly from the launcher UI.

To configure this:

1. Open the **io.Connect Desktop** launcher.
2. Go to the **Settings** section.
3. Configure your desired periodic restart and/or shutdown times.

This is the simplest approach and requires no custom code.

## Legacy Workaround: Invoking the Restart Interop Method (Pre-io.connect Desktop 9.4)

Before the built-in scheduling feature was available, the recommended approach was to create a hidden service application that invokes the `T42.ACS.Restart` Interop method on a schedule:

```javascript
await glue.interop.invoke("T42.ACS.Restart");

```

This approach still works and can be useful if you need a custom restart workflow in older versions of the platform.

## Programmatic Restart via the Platform API (io.Connect Desktop 10/0+)

If you need more control — for example, restarting from a custom service app on a specific schedule, or including custom logic before the restart — you can use the [Platform API](https://docs.interop.io/desktop/capabilities/platform/javascript/).

> **Note:** The `io.platform` API is available since **io.Connect Desktop 10.0**.

The `io.platform.restart()` method restarts the io.Connect platform programmatically. It accepts an optional `ExitOptions` object with the following properties:

- **`autoSave`** (boolean) — whether to persist the current Global Layout before restarting.
- **`showDialog`** (boolean) — whether to show a dialog to the user during the restart.
- **`reason`** (string) — a reason for the restart.

Example:

```javascript
const options = {
    autoSave: true,
    showDialog: false,
    reason: "Scheduled platform restart."
};

await io.platform.restart(options);

```

You can use this from a hidden service application that runs on a schedule to achieve a nightly restart.

Similarly, `io.platform.shutdown()` is available if you want to shut down the platform instead of restarting it.
