# Module service reports successful start of Monit but it isn't

**URL:** <https://forum.ansible.com/t/module-service-reports-successful-start-of-monit-but-it-isnt/11492>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 3, 2012, 8:16am UTC](https://forum.ansible.com/t/module-service-reports-successful-start-of-monit-but-it-isnt/11492 "2012-05-03T08:16:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harm\_Aarts](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@Harm\_Aarts](https://forum.ansible.com/u/Harm_Aarts)\
**Post date:** [May 3, 2012, 8:16am UTC](https://forum.ansible.com/t/module-service-reports-successful-start-of-monit-but-it-isnt/11492/1 "2012-05-03T08:16:33Z")

</div>

Dear list,

I must be doing something wrong. I run this command:  
$ ./bin/ansible riaknodes -i ansible\_hosts -u ops -s -k -m service -a ‘name=monit state=started’  
To the best of my knowledge this starts Monit. The output tells me it worked (or at least something changed):

node4.cluster1.\*\*\*.com | success \>\> {  
“changed”: true  
}

SSH’ing into that box showed no Monit process running. The start command also returns an error. I’m using Ubuntu 10.04 and the master branch of ansible.  
What can I do to debug this problem?

With kind regards,

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [May 3, 2012, 12:01pm UTC](https://forum.ansible.com/t/module-service-reports-successful-start-of-monit-but-it-isnt/11492/2 "2012-05-03T12:01:00Z")

</div>

Devel branch has had some service flux but we’re working on making it play nicer with Ubuntu.

Ultimately Ubuntu puts the service binary in a different place. This is really why we should never execute module commands with os.Popen to parse the results and  
should use subprocess with shell=False. It yields nicer errors.

–Michael
