command: '-consul={{ ansible_host }}:2250 -template="vhosts.ctmpl:vhosts.conf:/bin/docker/docker exec apache /usr/local/apache2/bin/apachectl configtest && /bin/docker/docker kill -s USR1 apache"'
But, the last reload of the apache command is failing as I can't send the signal to reload own process(apache) inside of staying in the container.
Can anyone please guide, you help is truly appreciated. Thanks in advance.
Best Regards
Himanshu Maity
[root@### ~]$ docker exec -it apache bash -c "/usr/local/apache2/bin/httpd -t && /bin/kill -s USR1 apache"
Syntax OK
kill: failed to parse argument: 'apache'
Thanks for your response Brian.
I think I'm using docker exec which support &&, please find the screenshot attached.