Skip to content

Commit

Permalink
Retest supervisorctl config
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Oct 30, 2023
1 parent ae9dff1 commit 392d9d7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
ansible.builtin.shell:
cmd: |
set -e -u -o pipefail
supervisorctl update tika
supervisorctl start tika
register: tika_service_result

Expand Down
1 change: 1 addition & 0 deletions tasks/solr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

- name: Kill all solr processes
changed_when: yes
failed_when: no
ansible.builtin.command:
cmd: "killall -u solr"

Expand Down
7 changes: 7 additions & 0 deletions tasks/tika.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
with_items:
- "{{ solr.tika.prefix.bin }}"

- name: Create log directory for Tika
ansible.builtin.file:
path: "/var/log/tika"
state: directory
owner: nobody
mode: "0755"

- name: Download Tika {{ solr.tika.version }}
register: tika_get_url_result
ansible.builtin.get_url:
Expand Down
3 changes: 3 additions & 0 deletions templates/supervisord.d/tika.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
user=nobody
command=/usr/local/bin/java -Xmx1g -jar /var/opt/tika/tika-server.jar -h localhost -p 9998
startsecs=5
environment=PATH=/usr/local/bin:/usr/bin
stdout_logfile=/var/log/tika/tika.log
redirect_stderr=true

0 comments on commit 392d9d7

Please sign in to comment.