# DS\_TERMINATE\_PRCL Template

**URL:** <https://forum.kx.com/t/ds-terminate-prcl-template/12367>\
**Category:** Community Support\
**Tags:** blogs\
**Created:** [January 20, 2022, 4:42pm UTC](https://forum.kx.com/t/ds-terminate-prcl-template/12367 "2022-01-20T16:42:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leades2](https://avatars.discourse-cdn.com/v4/letter/l/a87d85/32.png) [@leades2](https://forum.kx.com/u/leades2)\
**Post date:** [January 20, 2022, 4:42pm UTC](https://forum.kx.com/t/ds-terminate-prcl-template/12367/1 "2022-01-20T16:42:00Z")

</div>

Hello Community,

We have a simple method in Kx Control to schedule starts for processes. But&nbsp;below, is a demonstration of how to use the DS\_TERMINATE\_PRCL template to schedule a process shutdown.&nbsp;

**1.** Search DS\_TERMINATE\_PRCL in Control

**2.** First, let’s create the list of processes to shut down. Duplicate the DS\_TERMINATE\_PRCL\_NAME:DEFAULT config

**3.** Name it, select the package that contains the processes then click ‘Add’

**4.** Go to ‘Attribute Values’ and add the processes

For example, if I intended to shutdown emea\_gw and emea\_qr

**5.** Save this config and return back to the DS\_TERMINATE\_PRCL search

**6.** Right click the template, and select ‘New Process Instance’

**7.&nbsp;** Name it, select the relevant package then click ‘Add’

**8.** In ‘Instance Params’, select the value as the config we created earlier and save it

**9.** Search for your created instance, right click and select ‘New Task’

**10.** Name the task, and click ‘Add’. The other fields will be populated correctly (workflow isn’t necessary)

**11.** Enable ‘Schedule Task’ and fill in the details to schedule the shutdown how you desire

&nbsp;

Once this task is saved, your scheduled shutdowns will be fully set up. Feel free to provide feedback and questions below.

Many Thanks

Luke

&nbsp;

---

<div class="post-metadata">

**Author:** ![LeahS1](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@LeahS1](https://forum.kx.com/u/LeahS1)\
**Post date:** [January 21, 2022, 4:06pm UTC](https://forum.kx.com/t/ds-terminate-prcl-template/12367/2 "2022-01-21T16:06:00Z")

</div>

Super content Luke!&nbsp;

Thanks for sharing in so much detail&nbsp;
