# amq7 broker service start command not working through ansible (AWX)

**URL:** <https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691>\
**Category:** Ansible Project\
**Tags:** awx\
**Created:** [February 26, 2021, 5:39pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691 "2021-02-26T17:39:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [February 26, 2021, 5:39pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/1 "2021-02-26T17:39:12Z")

</div>

service Stop command working fine  
/bin/artemis-service stop

service start command is not working  
/bin/artemis-service start

I used nohup and wrote shell script to start but not working.

Could you please help on this one.

TIA

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 26, 2021, 5:47pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/2 "2021-02-26T17:47:18Z")

</div>

> service Stop command working fine  
> /bin/artemis-service stop
> 
> service start command is not working  
> /bin/artemis-service start
> 
> I used nohup and wrote shell script to start but not working.
> 
> Could you please help on this one.
> 
> TIA

How is that writing a shell script related to Ansible?

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [February 26, 2021, 5:49pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/3 "2021-02-26T17:49:57Z")

</div>

no… I placed start service command in .sh file.

Thanks

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [February 26, 2021, 5:54pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/4 "2021-02-26T17:54:50Z")

</div>

no… I placed start service command in .sh file.

Thanks

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [February 26, 2021, 5:56pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/5 "2021-02-26T17:56:36Z")

</div>

> no.. I placed start service command in .sh file.
> 
> Thanks

You know that Ansible has a "service" module, don't you?

Anyway, no point to pursue this further with the sparse information you gave.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [February 26, 2021, 6:05pm UTC](https://forum.ansible.com/t/amq7-broker-service-start-command-not-working-through-ansible-awx/34691/6 "2021-02-26T18:05:33Z")

</div>

Sorry for missing the Information. know ansible have service module…

Application configured there broker in there app directory like below. that’s the reason issued shell and command module but no luck {{Application}}/bin/artemis-service start.

Stop is working fine… but start not working
