# Creating an ember command that doesn't exit

**URL:** <https://discuss.emberjs.com/t/creating-an-ember-command-that-doesnt-exit/10642>\
**Category:** Ember CLI\
**Created:** [May 9, 2016, 6:12pm UTC](https://discuss.emberjs.com/t/creating-an-ember-command-that-doesnt-exit/10642 "2016-05-09T18:12:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skaterdav85](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/skaterdav85/32/18291_2.png) [@skaterdav85](https://discuss.emberjs.com/u/skaterdav85)\
**Post date:** [May 9, 2016, 6:12pm UTC](https://discuss.emberjs.com/t/creating-an-ember-command-that-doesnt-exit/10642/1 "2016-05-09T18:12:35Z")

</div>

I have a simple node script where I run `node index.js` and it waits and requires the user to Control + C to exit. I want to put this under a custom ember command. I already have the command set up, but the `run` function always exits, unlike when I run the node script standalone. How can I have it wait for the user to Control + C to exit just like when I run `node index.js`? Any tips or what to search for would be much appreciated!

EDIT: Return a promise from the run method and it fixes it.
