# How can i create an ant task tha that will shutdown and restart wowza

**URL:** <https://community.wowza.com/t/how-can-i-create-an-ant-task-tha-that-will-shutdown-and-restart-wowza/36599>\
**Category:** Wowza Streaming Engine\
**Created:** [September 25, 2014, 3:17pm UTC](https://community.wowza.com/t/how-can-i-create-an-ant-task-tha-that-will-shutdown-and-restart-wowza/36599 "2014-09-25T15:17:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Wallace](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@Matthew\_Wallace](https://community.wowza.com/u/Matthew_Wallace)\
**Post date:** [September 25, 2014, 3:17pm UTC](https://community.wowza.com/t/how-can-i-create-an-ant-task-tha-that-will-shutdown-and-restart-wowza/36599/1 "2014-09-25T15:17:36Z")

</div>

I created the following ant task.

\<?xml version="1.0"?\>

What I would like to do is for my IDE (Intellij) to wait until the server has started up before starting the remote debugging session.

Could someone give me some pointers on how I would do this.

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [September 29, 2014, 8:24am UTC](https://community.wowza.com/t/how-can-i-create-an-ant-task-tha-that-will-shutdown-and-restart-wowza/36599/2 "2014-09-29T08:24:22Z")

</div>

Hello

You might look at setting the command line options in the startup.sh to run the debugger and wait as needed. You can set the following:

```auto
 -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1044

```

The suspend=y will start java and then wait for the debugger to attach. If that is not what you are looking for, it may pay to contact intellij for alternative options.

Thanks,

Matt
