# Signal handling when running a third party service inside a Nameko Container

**URL:** <https://discourse.nameko.io/t/signal-handling-when-running-a-third-party-service-inside-a-nameko-container/130>\
**Category:** googlegroup\
**Created:** [May 2, 2016, 9:30pm UTC](https://discourse.nameko.io/t/signal-handling-when-running-a-third-party-service-inside-a-nameko-container/130 "2016-05-02T21:30:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![geeta\_raghu\_vamsi\_ko](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@geeta\_raghu\_vamsi\_ko](https://discourse.nameko.io/u/geeta_raghu_vamsi_ko)\
**Post date:** [May 2, 2016, 9:30pm UTC](https://discourse.nameko.io/t/signal-handling-when-running-a-third-party-service-inside-a-nameko-container/130/1 "2016-05-02T21:30:52Z")

</div>

\<[https://lh3.googleusercontent.com/--CKKlA\_1s3A/VyeB2ffJvDI/AAAAAAAAAbY/ZjkEGmxBZvE5m-6wWak8R0nxot20QosrACLcB/s1600/nameko.png](https://lh3.googleusercontent.com/--CKKlA_1s3A/VyeB2ffJvDI/AAAAAAAAAbY/ZjkEGmxBZvE5m-6wWak8R0nxot20QosrACLcB/s1600/nameko.png)\>

On the Green side of the block is running a Nameko service Container which  
runs another service like a Django Application or a Crawling Framework like  
Scrapy and most of these apps have their own signal processing to detect  
the Ctrl +C signal so that they make a soft shutdown of their services but  
my problem here is that the internal service shutdowns properly or some  
times halts but when i send the same signal for nameko why cant the nameko  
shutdown the whole container and when i try this scenario the internal  
applications where been closed and some time not and the nameko service  
gets halted.

are there any extra parameters that i should use to make the container  
shutdown safely when a signal is received .

---

<div class="post-metadata">

**Author:** ![mattbennett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/mattbennett/32/13_2.png) [@mattbennett](https://discourse.nameko.io/u/mattbennett)\
**Post date:** [May 3, 2016, 10:30pm UTC](https://discourse.nameko.io/t/signal-handling-when-running-a-third-party-service-inside-a-nameko-container/130/2 "2016-05-03T22:30:44Z")

</div>

Sorry, I don't understand the question. Can you post a code sample showing what you're trying to do?
