Skip to content

Commit

Permalink
work around FISH-7665
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Sizemore committed Jul 26, 2023
1 parent ea1e902 commit 0385263
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tasks/payara.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,5 +136,24 @@
mode: '0750'
state: directory

- name: flush hadlers to start payara and possibly reload systemd
- name: workaround for FISH-7665
lineinfile:
path: '{{ payara_dir }}/glassfish/config/asenv.conf'
line: '{{ item }}'
with_items:
- 'export JAVA_TOOL_OPTIONS'
- 'JAVA_TOOL_OPTIONS="-Djdk.util.zip.disableZip64ExtraFieldValidation=true --add-opens=java.base/java.io=ALL-UNNAMED"'
when: dataverse.payara.zipurl is match(".*payara-6.*")

- name: workaround for FISH-7665
template:
src: payara6.service.j2
dest: /usr/lib/systemd/system/payara.service
owner: root
group: root
mode: 0644
when: (ansible_os_family == "RedHat") and (dataverse.payara.zipurl is match(".*payara-6.*"))
notify: reload systemd

- name: flush handlers to start payara and possibly reload systemd
meta: flush_handlers
15 changes: 15 additions & 0 deletions templates/payara6.service.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description = Payara Server
After = syslog.target network.target

[Service]
Type = forking
User = {{ dataverse.payara.user }}
ExecStart = {{ payara_dir }}/bin/asadmin start-domain
ExecStop = {{ payara_dir }}/bin/asadmin stop-domain
ExecReload = {{ payara_dir }}/bin/asadmin restart-domain
LimitNOFILE = 65000
TimeoutStartSec = {{ dataverse.payara.launch_timeout }}s

[Install]
WantedBy = multi-user.target

0 comments on commit 0385263

Please sign in to comment.