Skip to content
Snippets Groups Projects
Commit 19e26f63 authored by root's avatar root
Browse files

change nifi restart commands to cleanup before starting it again

parent df80b80e
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ WORKDIR ${NIFI_HOME}
# thus normal shell processing does not happen:
# https://docs.docker.com/engine/reference/builder/#exec-form-entrypoint-example
USER root
RUN yum install -y supervisor rsync
RUN yum install -y supervisor rsync python2-psutil
RUN yum clean all
COPY nifisupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
---
- name: Restart NiFi
- name: Getting pids for nifi
pids:
name: nifi
register: pids_of_nifi
- name: Stop NiFi
remote_user: root
command: "supervisorctl stop nifi"
- name: Check nifi processes
remote_user: root
wait_for:
path: /proc/{{ item }}/status
state: absent
with_items: "{{ pids_of_nifi.pids }}"
- name: Start NiFi
remote_user: root
command: "supervisorctl restart nifi"
command: "supervisorctl start nifi"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment