From 77ab5f6ddc05cddc43f8d460376847f1feb8acf9 Mon Sep 17 00:00:00 2001 From: Juergen Buddy Hoffmann Date: Mon, 28 Nov 2016 21:25:07 +0100 Subject: [PATCH 1/2] Fixed a typo --- templates/wildfly.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wildfly.service.j2 b/templates/wildfly.service.j2 index b466ded..6216a13 100644 --- a/templates/wildfly.service.j2 +++ b/templates/wildfly.service.j2 @@ -6,7 +6,7 @@ After=network.target Type=simple User=wildfly Group=wildfly -ExecStart=/opt/wildfly-{{ wildlfy_version }}/bin/standalone.sh +ExecStart=/opt/wildfly-{{ wildfly_version }}/bin/standalone.sh [Install] WantedBy=multi-user.target \ No newline at end of file From f40d6ae500cc73cb36edc410c8522a23597a5967 Mon Sep 17 00:00:00 2001 From: Juergen Buddy Hoffmann Date: Mon, 28 Nov 2016 21:45:47 +0100 Subject: [PATCH 2/2] Fixes #8 A systemd definition requires the identification of a given Service, whether it is a service or a socket, etc. This bugfix fixes #8. But there are more things to do. The init script allowed for a lot more options, which need to be ported into the systemd script. I think the easiest would be to call the init script with the start option from the service definition file. Let me know what you think. --- tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 7fdac05..8e59de4 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -40,7 +40,7 @@ - change standalone data mode - name: Copy wildfly systemd unit file - template: src=wildfly.service.j2 dest={{ wildfly_systemd_dir }}/wildfly owner=root + template: src=wildfly.service.j2 dest={{ wildfly_systemd_dir }}/wildfly.service owner=root group=root mode=0640 when: ansible_service_mgr == 'systemd' notify: