My guess would be the fire and forget nature of using the shell command. If you ran '/usr/sbin/myprogram -C /etc/myconfig/myprogram.conf' it would die on exit. I'm curious why you need it instead of just doing:
- service: name=httpd state=started On Wed, Oct 15, 2014 at 7:39 AM, Alainkr <akreienb...@gmail.com> wrote: > Hello, > > I'm very puzzled by the following: > > using regular ssh I'm not getting SIGHUP at the end. > using ansible SIGHUP get's sent : strace output : > > 0x7f34a666c9d0, tls=0x7f34a666c700, child_tidptr=0x7f34a666c9d0) = 600 > futex(0x7f34a666c9d0, FUTEX_WAIT, 600, NULL) = ? ERESTARTSYS (To be > restarted) > --- SIGHUP (Hangup) @ 0 (0) --- > +++ killed by SIGHUP +++ > > This is using an adhoc commands such : > -m shell -a "sudo /etc/init.d/myservice start" > -m shell -a "/etc/init.d/myservice start" -s > -m shell -a "/etc/init.d/myservice start" -s -c ssh > > I've tried -c ssh but behavior is unchanged. > I'm aware of the service module. But this is just an example. > The funny thing is that when using the service module no SIGHUP gets send > > My shell (bash) has "huponexit off" off couse. > > What is happening here ? Is this the excepted behavior ? > > I'm using ansible (1.7.1) paramiko (1.15.0) ( upgraded paramiko to > (1.15.1) same result ) > > Thanks for your help. I'm kind of lost on this. > > Alain > > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To post to this group, send email to ansible-project@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/90ade591-bcd1-4913-b622-9f74d17c8430%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/90ade591-bcd1-4913-b622-9f74d17c8430%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKsMCERuyq0L%3D-rXdWyw1Uai6FvC%2BE1Xvb%3DLHYMFj21kD%3DuMyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.