[jboss-as] Add an easy way to override the default bind address for systemd service
Marek Goldmann
goldmann at fedoraproject.org
Thu Nov 29 13:27:16 UTC 2012
commit 83ddd981545a00737dfe26cfb2d3530ab8d27ac0
Author: Marek Goldmann <mgoldman at redhat.com>
Date: Thu Nov 29 13:30:53 2012 +0100
Add an easy way to override the default bind address for systemd service
...-way-to-override-the-default-bind-address.patch | 36 ++++++++++++++++++++
jboss-as.spec | 2 +
2 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/0046-Add-an-easy-way-to-override-the-default-bind-address.patch b/0046-Add-an-easy-way-to-override-the-default-bind-address.patch
new file mode 100644
index 0000000..8a09243
--- /dev/null
+++ b/0046-Add-an-easy-way-to-override-the-default-bind-address.patch
@@ -0,0 +1,36 @@
+From cd9021ae48a64e3256e827c66fc67caea21e1c16 Mon Sep 17 00:00:00 2001
+From: Marek Goldmann <mgoldman at redhat.com>
+Date: Thu, 29 Nov 2012 13:24:16 +0100
+Subject: [PATCH] Add an easy way to override the default bind address for
+ systemd service
+
+---
+ build/src/main/resources/bin/initscripts/systemd/jboss-as.conf | 4 ++++
+ build/src/main/resources/bin/initscripts/systemd/jboss-as.service | 2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/build/src/main/resources/bin/initscripts/systemd/jboss-as.conf b/build/src/main/resources/bin/initscripts/systemd/jboss-as.conf
+index 580b385..20f2780 100644
+--- a/build/src/main/resources/bin/initscripts/systemd/jboss-as.conf
++++ b/build/src/main/resources/bin/initscripts/systemd/jboss-as.conf
+@@ -2,3 +2,7 @@
+ #
+ JBOSS_CONFIG=standalone.xml
+
++# The address to bind to
++#
++JBOSS_BIND=0.0.0.0
++
+diff --git a/build/src/main/resources/bin/initscripts/systemd/jboss-as.service b/build/src/main/resources/bin/initscripts/systemd/jboss-as.service
+index 32c1c10..1a546cc 100644
+--- a/build/src/main/resources/bin/initscripts/systemd/jboss-as.service
++++ b/build/src/main/resources/bin/initscripts/systemd/jboss-as.service
+@@ -9,7 +9,7 @@ EnvironmentFile=-/etc/jboss-as/jboss-as.conf
+ User=jboss-as
+ LimitNOFILE=102642
+ PIDFile=/var/run/jboss-as/jboss-as.pid
+-ExecStart=/usr/share/jboss-as/bin/standalone.sh -c $JBOSS_CONFIG
++ExecStart=/usr/share/jboss-as/bin/standalone.sh -c $JBOSS_CONFIG -b $JBOSS_BIND
+ StandardOutput=null
+
+ [Install]
diff --git a/jboss-as.spec b/jboss-as.spec
index 0535f82..e4909cc 100644
--- a/jboss-as.spec
+++ b/jboss-as.spec
@@ -79,6 +79,7 @@ Patch41: 0042-Revert-Disable-jbossws-native-usage.patch
Patch42: 0043-Enable-jbossws-native-remove-javax.jws.api-from-cxf-.patch
Patch43: 0044-fedora-Missing-module-dependencies-after-unbundling.patch
Patch44: 0045-Make-standalone.xml-the-default-configuration-instea.patch
+Patch45: 0046-Add-an-easy-way-to-override-the-default-bind-address.patch
BuildArch: noarch
@@ -1125,6 +1126,7 @@ fi
* Wed Nov 28 2012 Marek Goldmann <mgoldman at redhat.com> - 7.1.1-12
- Fixing many missing symlinks
- Make standalone.xml the default configuration instead standalone-web.xml
+- Add an easy way to override the default bind address for systemd service
* Tue Nov 20 2012 Marek Goldmann <mgoldman at redhat.com> - 7.1.1-11
- Add webservices support based on CXF 2.6.3
More information about the scm-commits
mailing list