Skip to content
Snippets Groups Projects
Commit f8a7d062 authored by Temur Maisuradze's avatar Temur Maisuradze
Browse files

How to restart services inside docker containers

parent 174533f1
No related branches found
No related tags found
No related merge requests found
...@@ -11,3 +11,12 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo ...@@ -11,3 +11,12 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo
`docker cp <CONTAINER ID>:/opt/nifi/nifi-current/conf/flow.xml.gz .` `docker cp <CONTAINER ID>:/opt/nifi/nifi-current/conf/flow.xml.gz .`
* Convert flowx.xml.gz to new template * Convert flowx.xml.gz to new template
`utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2` `utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2`
Restart services inside docker containers
-----------------------------------------
To restart services inside docker containers after changes in configuration files:
1. Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash)
2. List services and their statuses: supervisorctl status
3. Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak)
4. Detach from container: exit
/usr/share/kibana/kblog
{
rotate 0
daily
missingok
notifempty
copytruncate
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment