Permalink
Browse files

tunning jboss-as

  • Loading branch information...
1 parent c3cb5dd commit 36299f3f0697b2eeb4811683f90054addf0189e9 @jirib committed Mar 17, 2013
Showing with 25 additions and 35 deletions.
  1. +4 −9 java/jboss-as/TODO
  2. +20 −25 java/jboss-as/pkg/PLIST
  3. +1 −1 java/jboss-as/pkg/jboss_as_domain.rc
View
13 java/jboss-as/TODO
@@ -1,11 +1,6 @@
* TESTING!
* mv configuration to /var/jboss-as as some people hate
- apps constantly writting to /etc
-* solve warnings
-You should also run -rm -rf /var/log/jboss-as/
-Error deleting directory /var/log/jboss-as/standalone: Directory not empty
-Error deleting directory /var/jboss-as/standalone/tmp: Directory not empty
-Error deleting directory /var/jboss-as/standalone/data: Directory not empty
-Error deleting directory /var/jboss-as/standalone/configuration: Directory not empty
-Error deleting directory /var/jboss-as/standalone: Directory not empty
-Error deleting directory /var/jboss-as: Directory not empty
+ apps constantly writting to /etc ?? or opposite?? :D
+* domain servers not logging into /var/log/jboss-as/domain/...
+* mention standalone.conf in README
+
View
45 java/jboss-as/pkg/PLIST
@@ -4,6 +4,21 @@
@owner _jbossas
@group _jbossas
@sample ${SYSCONFDIR}/jboss-as/
+@sample ${JBOSS_ROOT}/
+@sample ${JBOSS_ROOT}/domain/
+@sample ${JBOSS_ROOT}/domain/configuration/
+@sample ${JBOSS_ROOT}/domain/data/
+@sample ${JBOSS_ROOT}/domain/data/content/
+@sample ${JBOSS_ROOT}/domain/tmp/
+@sample ${JBOSS_ROOT}/domain/tmp/auth/
+@sample ${JBOSS_ROOT}/standalone/
+@sample ${JBOSS_ROOT}/standalone/configuration/
+@sample ${JBOSS_ROOT}/standalone/deployments/
+@sample ${JBOSS_ROOT}/standalone/lib/
+@sample ${JBOSS_ROOT}/standalone/lib/ext/
+@sample ${JBOSS_ROOT}/standalone/tmp/
+@sample ${JBOSS_ROOT}/standalone/tmp/auth/
+@sample ${JBOSS_LOG_ROOT}/
@owner
@group
jboss-as/
@@ -1656,7 +1671,6 @@ share/doc/jboss-as/docs/schema/jbossws-jaxws-config_4_0.xsd
share/doc/jboss-as/docs/schema/jbossws-web-services_1_0.xsd
share/examples/jboss-as/
share/examples/jboss-as/domain/
-@sample ${JBOSS_ROOT}/domain/configuration/
share/examples/jboss-as/domain/application-roles.properties
@sample ${JBOSS_ROOT}/domain/configuration/application-roles.properties
share/examples/jboss-as/domain/application-users.properties
@@ -1680,7 +1694,6 @@ share/examples/jboss-as/domain/mgmt-users.properties
share/examples/jboss-as/domain/domain.conf
@sample ${JBOSS_ROOT}/domain/configuration/domain.conf
share/examples/jboss-as/standalone/
-@sample ${JBOSS_ROOT}/standalone/configuration/
share/examples/jboss-as/standalone/application-roles.properties
@sample ${JBOSS_ROOT}/standalone/configuration/application-roles.properties
share/examples/jboss-as/standalone/application-users.properties
@@ -1703,30 +1716,12 @@ share/examples/jboss-as/standalone/standalone.xml
@sample ${JBOSS_ROOT}/standalone/configuration/standalone.xml
share/examples/jboss-as/standalone/standalone.conf
@sample ${JBOSS_ROOT}/standalone/configuration/standalone.conf
-@owner _jbossas
-@group _jbossas
-@sample ${JBOSS_ROOT}/
-@sample ${JBOSS_ROOT}/domain/
-@sample ${JBOSS_ROOT}/domain/data/
-@sample ${JBOSS_ROOT}/domain/content/
-@sample ${JBOSS_ROOT}/domain/tmp/
-@sample ${JBOSS_ROOT}/domain/tmp/auth/
-@sample ${JBOSS_ROOT}/standalone/
-@sample ${JBOSS_ROOT}/standalone/data/
-@sample ${JBOSS_ROOT}/standalone/deployments/
-@sample ${JBOSS_ROOT}/standalone/lib/
-@sample ${JBOSS_ROOT}/standalone/lib/ext/
-@sample ${JBOSS_ROOT}/standalone/tmp/
-@sample ${JBOSS_ROOT}/standalone/tmp/auth/
-@sample ${JBOSS_LOG_ROOT}/domain/
-@sample ${JBOSS_LOG_ROOT}/standalone/
@rcscript ${RCDIR}/jboss_as_domain
@rcscript ${RCDIR}/jboss_as_standalone
-@exec chown -R _jbossas:_jbossas ${JBOSS_ROOT}
+@extraunexec rm -rf ${JBOSS_ROOT}/
+@extraunexec rm -rf ${JBOSS_LOG_ROOT}/
+@unexec-delete if [ -h ${SYSCONFDIR}/jboss-as/standalone ]; then rm ${SYSCONFDIR}/jboss-as/standalone; fi
+@unexec-delete if [ -h ${SYSCONFDIR}/jboss-as/domain ]; then rm ${SYSCONFDIR}/jboss-as/domain; fi
+@comment add symlinks
@exec-add if [ ! -e ${SYSCONFDIR}/jboss-as/standalone ]; then ln -sf ${JBOSS_ROOT}/standalone/configuration ${SYSCONFDIR}/jboss-as/standalone; fi
@exec-add if [ ! -e ${SYSCONFDIR}/jboss-as/domain ]; then ln -sf ${JBOSS_ROOT}/domain/configuration ${SYSCONFDIR}/jboss-as/domain; fi
-@unexec if [ -h ${SYSCONFDIR}/jboss-as/standalone ]; then rm ${SYSCONFDIR}/jboss-as/standalone; fi
-@unexec if [ -h ${SYSCONFDIR}/jboss-as/domain ]; then rm ${SYSCONFDIR}/jboss-as/domain; fi
-@extraunexec -rm -rf ${JBOSS_LOG_ROOT}/
-@extra ${JBOSS_ROOT}/jboss-as/standalone/configuration/*history/
-@extra ${JBOSS_ROOT}/jboss-as/domain/configuration/*history/
View
2 java/jboss-as/pkg/jboss_as_domain.rc
@@ -3,7 +3,7 @@
# $OpenBSD$
daemon="${TRUEPREFIX}/jboss-as/bin/domain.sh"
-daemon_flags="-Djboss.domain.base.dir=${JBOSS_ROOT}/domain -Djboss.domain.config.dir=${JBOSS_ROOT}/domain/configuration -Djboss.domain.log.dir=${JBOSS_LOG_ROOT}/domain -c domain.xml"
+daemon_flags="-Djboss.domain.base.dir=${JBOSS_ROOT}/domain -Djboss.domain.config.dir=${JBOSS_ROOT}/domain/configuration -Djboss.server.log.dir=${JBOSS_LOG_ROOT}/domain -c domain.xml"
daemon_user="_jbossas"
. /etc/rc.d/rc.subr

0 comments on commit 36299f3

Please sign in to comment.