# Error checking for daemon/service restarts

**URL:** <https://forum.ansible.com/t/error-checking-for-daemon-service-restarts/18998>\
**Category:** Ansible Project\
**Created:** [August 11, 2015, 7:41pm UTC](https://forum.ansible.com/t/error-checking-for-daemon-service-restarts/18998 "2015-08-11T19:41:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Marshall](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@David\_Marshall](https://forum.ansible.com/u/David_Marshall)\
**Post date:** [August 11, 2015, 7:41pm UTC](https://forum.ansible.com/t/error-checking-for-daemon-service-restarts/18998/1 "2015-08-11T19:41:57Z")

</div>

Hi,

I want to make sure I am going about this in the cleanest and easiest way possible. Maybe someone else has done this before or has some better ideas for me :)?

When a service is restarted i.e. “service networking restart”, I want to check for stderr and stdout to make sure there were no issues with the ansible push.  
I am using “nested” handlers to accomplish this atm:
