# can't stop  ec2 instance

**URL:** <https://community.wowza.com/t/cant-stop-ec2-instance/35500>\
**Category:** Wowza Streaming Engine\
**Created:** [November 3, 2010, 3:49am UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500 "2010-11-03T03:49:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram\_Mostafa](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@Ram\_Mostafa](https://community.wowza.com/u/Ram_Mostafa)\
**Post date:** [November 3, 2010, 3:49am UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/1 "2010-11-03T03:49:40Z")

</div>

hi,

i don’t need my instance on amazon ec2 running all the time, and i don’t need to terminate it because i configured many settings that fit my needs.so i need to stop it so as not to be charged all the time, but i found the stop option is grayed-out

please need a help

thanks

Ram

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 3, 2010, 2:21pm UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/2 "2010-11-03T14:21:57Z")

</div>

Ram,

The only good option is to configure a startup package. Then you can terminate the instance when you don’t need it and start one up that is automatically configured as you want it. It’s mostly identical set of files to the your configuration, whatever is different, application and conf folders and Application.xml. If you have made changes to other configuration files, e.g. Server.xml, you will include that in the startup package.

Take a look at the Wowza EC2 guide for details on creating a startup package:

[https://www.wowza.com/resources/WowzaMediaServerForEC2\_UsersGuide.pdf](https://www.wowza.com/resources/WowzaMediaServerForEC2_UsersGuide.pdf)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 3, 2010, 3:30pm UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/3 "2010-11-03T15:30:30Z")

</div>

In ElasticFox there is a button labeled “Open Binary File” in the launch instance dialog. That’s how to include startup zip file with ElasticFox.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [November 7, 2010, 2:22pm UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/4 "2010-11-07T14:22:47Z")

</div>

Ram,

You save the startup package locally, and included it when you launch an instance by clicking on that button in Elastic Fox.

Yes, you can apply a patch using a startup package. It if puts the files size over the limit (16KB I think) you have to use download tag in the startup.xml file:

```auto
<Download>
	<URL>http://[web-server]/jarfiles.zip</URL>
	<Destination>/usr/local/WowzaMediaServer/lib/jarfiles.zip</Destination>
	<Action>UNZIP</Action>
</Download>

```

If you replace the /conf/Server.xml file using a startup package, there are two EC2 specific ServerListeners that you should be sure to include.

Richard

---

<div class="post-metadata">

**Author:** ![Ian\_Beyer](https://avatars.discourse-cdn.com/v4/letter/i/e99b99/32.png) [@Ian\_Beyer](https://community.wowza.com/u/Ian_Beyer)\
**Post date:** [November 3, 2010, 9:26am UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/5 "2010-11-03T09:26:24Z")

</div>

Startup packages are your friend.

It’s a little tricky to do a startup package via the AWS web console, however. Best way to launch an AMI with a startup package is via the java AMI tools.

---

<div class="post-metadata">

**Author:** ![Ram\_Mostafa](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@Ram\_Mostafa](https://community.wowza.com/u/Ram_Mostafa)\
**Post date:** [November 7, 2010, 6:11am UTC](https://community.wowza.com/t/cant-stop-ec2-instance/35500/6 "2010-11-07T06:11:04Z")

</div>

thanks guys,

i’m in a need for more details about writing the startup.xml file and where to save it permanently,

another point, i need to Apply patch 5 to that server? can i do that as startup package??

Ram
