I'm using this shell script in my jenkins file for running my scripts. I implemented rerun and rebot for merging of reports
${Run_Type} = pabot
${REPORT_FOLDER} = output directory
steps {
script {
dir("${NODE_WORKSPACE}") {
try {
sh "rm -rf ../${BATCH_TARGET_DIR_NAME}"
def exitCode;
if(params.Tags == null || params.Tags.isEmpty()){
exitCode = sh script: "${Run_Type} -d ../${REPORT_FOLDER} -v browser:headlesschrome -v webdriver.chrome.driver:chromedriver -i ${TestGroup} . || \
${Run_Type} -d ../${REPORT_FOLDER} --rerunfailed ../${REPORT_FOLDER}/output.xml -o rerun.xml -i ${TestGroup} . || \
rebot -o ../${REPORT_FOLDER}/final.xml -r ../${REPORT_FOLDER}/report.html -l ../${REPORT_FOLDER}/log.html -R ../${REPORT_FOLDER}/output.xml ../${REPORT_FOLDER}/rerun.xml", returnStatus: true
}
else{
exitCode = sh script: "${Run_Type} -d ../${REPORT_FOLDER} -v browser:headlesschrome -v webdriver.chrome.driver:chromedriver -i ${Tags} . || \
${Run_Type} -d ../${REPORT_FOLDER} --rerunfailed ../${REPORT_FOLDER}/output.xml -o rerun.xml -i ${Tags} . || \
rebot -o ../${REPORT_FOLDER}/final.xml -r ../${REPORT_FOLDER}/report.html -l ../${REPORT_FOLDER}/log.html -R ../${REPORT_FOLDER}/output.xml ../${REPORT_FOLDER}/rerun.xml", returnStatus: true
}
if (exitCode != 0) {
TEST_RESULT = "FAILURE"
throw new Exception("exitCode " + exitCode);
}
} catch (Throwable e) {
throw e
}
}
}
}
Here's the deal:
rebot -R (--merge) xml reports is working when test cases are still failed after rerun.
successful_merge_report_because_rerun_still_failed
But when I rerun and the test case/s are passed, rebot --merge/-R don't even run on jenkins
Report displays only the rerun report and I noticed that rebot --merge didn't even run on my jenkins console output
I'm thinking maybe there's a problem with the logic of my shell script since it's working when test cases are still failed after rerun.
here is an isolated one line of my shell script:
sh script: "${Run_Type} -d ../${REPORT_FOLDER} -v browser:headlesschrome -v webdriver.chrome.driver:chromedriver -i ${TestGroup} . || ${Run_Type} -d ../${REPORT_FOLDER} --rerunfailed ../${REPORT_FOLDER}/output.xml -o rerun.xml -i ${TestGroup} . || rebot -o ../${REPORT_FOLDER}/final.xml -r ../${REPORT_FOLDER}/report.html -l ../${REPORT_FOLDER}/log.html -R ../${REPORT_FOLDER}/output.xml ../${REPORT_FOLDER}/rerun.xml", returnStatus: true
Related
I am trying to install apache version:2.4.54,
./configure --prefix= -with-included-apr --with-apr-util= --with-pcre=
Congiration completed successfully.
installation for apr(1.7.0),apr-util(version:1.6.1),pcre (version : 2-10.40) is successful.
facing below issue while make in the path (httpd/server):
/home/httpd/srclib/apr/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I. -I/home/httpd/os/unix -I/home/httpd/include -I/home/httpd/srclib/apr/include -I/home/httpd/srclib/apr-util/include -I/home/pcre/include -I/home/httpd/modules/aaa -I/home/httpd/modules/cache -I/home/httpd/modules/core -I/home/httpd/modules/database -I/home/httpd/modules/filters -I/home/httpd/modules/ldap -I/home/httpd/modules/loggers -I/home/httpd/modules/lua -I/home/httpd/modules/proxy -I/home/httpd/modules/http2 -I/home/httpd/modules/session -I/home/httpd/modules/ssl -I/home/httpd/modules/test -I/home/httpd/server -I/home/httpd/modules/md -I/home/httpd/modules/arch/unix -I/home/httpd/modules/dav/main -I/home/httpd/modules/generators -I/home/httpd/modules/mappers -prefer-non-pic -static -c util.c && touch util.lo
/usr/ccs/bin/as: "/var/tmp//ccl7Uxwi.s", line 37236: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccl7Uxwi.s", line 37236: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccl7Uxwi.s", line 37236: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `util.lo'
Current working directory /home/httpd/server
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list=' mpm'; \
for i in $list; do \
if test -d "$i"; then \
target="$otarget"; \
echo "Making $target in $i"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-$target"; \
fi; \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test "$otarget" = "all" && test -z 'delete-exports libmain.la export_vars.h httpd.exp'; then \
made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'```
Any Solution for the issue.
installation is done in solaris machine.
I am trying to add a custom layer for Alexa-SDK. I created *.bb file and when I run bitbake alexa command every task completes successfully. But I am unable to find SampleApp executable in /tmp /deploy or /work direrctory.
Here is my *.bb file
SUMMARY = "bitbake-alexa recipe"
DESCRIPTION = "Alexa SDK"
SECTION = "alexa"
LICENSE = "CLOSED"
SRC_URI = "git://github.com/alexa/avs-devicesdk.git;branch=master;protocol=https"
SRCREV = "8bf0160c5e56a3d5ebc1e1caeab14afc8658b0da"
INSANE_SKIP_${PN} = "dev-so"
TARGET_CC_ARCH += "${LDFLAGS}"
S = "${WORKDIR}/git"
SB = "${WORKDIR}/build"
AVS_DIR ?= "/home/root/Alexa_SDK"
inherit cmake
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=RELEASE \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DCMAKE_INSTALL_PREFIX=${D}${AVS_DIR}/avs-sdk-client \
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH=${STAGING_LIBDIR}/libportaudio.so \
-DPORTAUDIO_INCLUDE_DIR=${STAGING_INCDIR} \
"
RDEPENDS_${PN} += "bash perl"
DEPENDS = "curl sqlite3 portaudio-v19 gstreamer1.0-plugins-base"
do_compile() {
cd ${SB}
oe_runmake ${PARALLEL_MAKE} SampleApp
}
do_install() {
install -d -m 0755 ${D}${AVS_DIR}
install -d -m 0755 ${D}/sounds
install -d -m 0755 ${D}/database
install -d -m 0755 ${D}${AVS_DIR}/avs-sdk-client
cd ${SB}
find ./ -executable -type f -exec cp --parents -v {}
${D}/${AVS_DIR}/avs-sdk-client \;
find ./ -name *.py -exec cp --parents -v {} ${D}/${AVS_DIR}/avs-sdk-client \;
find ${D}/${AVS_DIR}/avs-sdk-client -name "*.py" -exec sed -e s#${SB}#${AVS_DIR}/avs-sdk-client#g -i {} \;
mkdir ${D}/${AVS_DIR}/avs-sdk-client/Integration
mkdir ${D}/${AVS_DIR}/libs
cd ${D}/${AVS_DIR}/libs
find ../avs-sdk-client -executable -type f -exec ${WORKDIR}/libsInstall.sh {} \;
cp -r -L ${S} ${D}/${AVS_DIR}/avs-device-sdk
cd ${D}/${AVS_DIR}/avs-device-sdk
git repack -a -d
}
FILES_${PN} = "${AVS_DIR} /sounds /database"
BBCLASSEXTEND = "native"
Please suggest what I am missing as I want to make SampleApp part of the image and run it on RaspberryPi
Updated .bb file
SUMMARY = "bitbake-alexa recipe" DESCRIPTION = "Alexa SDK" SECTION = "alexa" LICENSE = "CLOSED"
SRC_URI = "git://github.com/alexa/avs-device-sdk.git;branch=master;protocol=https"
SRCREV = "8bf0160c5e56a3d5ebc1e1caeab14afc8658b0da"
S = "${WORKDIR}/git" SB = "${WORKDIR}/build"
TARGET_CXXFLAGS += " -D_GLIBCXX_USE_CXX11_ABI=0
-Wno-error=class-memaccess"
inherit cmake
INSANE_SKIP_${PN} = "install-vs-shipped"
INSANE_SKIP_${PN} = "ldflags"
AVS_DIR ?= "/home/root/Alexa_SDK"
EXTRA_OECMAKE = " \ -DCMAKE_BUILD_TYPE=DEBUG \ -DGSTREAMER_MEDIA_PLAYER=ON \
-DCMAKE_INSTALL_PREFIX=${D}${AVS_DIR}/avs-sdk-client \ -DPORTAUDIO=ON \ -DPORTAUDIO_LIB_PATH=${STAGING_LIBDIR}/libportaudio.so \ -DPORTAUDIO_INCLUDE_DIR=${STAGING_INCDIR} \ " RDEPENDS_${PN} += "bash
perl"
DEPENDS = " \ curl \ sqlite3 \
portaudio-v19 \ gstreamer1.0-plugins-base \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \ "
do_install(){
install -d -m 0755 ${D}${AVS_DIR}
install -d -m 0755 ${D}${AVS_DIR}/avs-sdk-client
find ./ -executable -type f -exec cp --parents -v {}
${D}/${AVS_DIR}/avs-sdk-client \;
find ./ -name *.py -exec cp --parents -v {} ${D}/${AVS_DIR}/avs-
sdk-client \;
find ${D}/${AVS_DIR}/avs-sdk-client -name "*.py" -exec sed -e
s#${SB}#${AVS_DIR}/avs-sdk-client#g -i {} \;
mkdir ${D}/${AVS_DIR}/libs
cd ${D}/${AVS_DIR}/libs
find ../avs-sdk-client -executable -type f -exec
${WORKDIR}/libsInstall.sh {} \;
cp -r -L ${S} ${D}/${AVS_DIR}/avs-device-sdk
cd ${D}/${AVS_DIR}/avs-device-sdk
git repack -a -d
rm .git/objects/info/alternates
}
FILES_${PN} += "${bindir}/SampleApp \
${AVSDIR} \"
Since you are using cmake here you don't need to write do_compile() here as cmake bbclass will take of it when you do inherit cmake.
If the CmakeLists.txt for you are application is fine, yocto will compile it out and created the required bins/libs as part of it.
You can add
FILES_${PN} += "${bindir}/sample app \
${AVSDIR} \
sounds"
And then add your package into corresponding package group or add in local.conf.
IMAGE_INSTALL_append = "sampleApp"
Check whether now you are getting the required bins in rootfs.
I'm trying to compile httpd-2.4.20 in Solaris 11.3 box. ./configure doesn't give any error. But make gives an error and I don't know how to fix it. No simmilar question found in stackoverflow or google search. My commands are as follows.
root#LDOM01-test:/data/software/httpd-2.4.20# uname -ar
SunOS LDOM01-test 5.11 11.3 sun4v sparc sun4v
root#LDOM01-test:/data/software/httpd-2.4.20# gcc --version
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root#LDOM01-test:/data/software/httpd-2.4.20# ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
....
....
....
root#LDOM01-test:/data/software/httpd-2.4.20# make
.....
.....
.....
/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I. -I/data/software/httpd-2.4.20/os/unix -I/data/software/httpd-2.4.20/include -I/usr/local/apr/include/apr-1 -I/usr/include/pcre -I/data/software/httpd-2.4.20/modules/aaa -I/data/software/httpd-2.4.20/modules/cache -I/data/software/httpd-2.4.20/modules/core -I/data/software/httpd-2.4.20/modules/database -I/data/software/httpd-2.4.20/modules/filters -I/data/software/httpd-2.4.20/modules/ldap -I/data/software/httpd-2.4.20/modules/loggers -I/data/software/httpd-2.4.20/modules/lua -I/data/software/httpd-2.4.20/modules/proxy -I/data/software/httpd-2.4.20/modules/session -I/data/software/httpd-2.4.20/modules/ssl -I/data/software/httpd-2.4.20/modules/test -I/data/software/httpd-2.4.20/server -I/data/software/httpd-2.4.20/modules/arch/unix -I/data/software/httpd-2.4.20/modules/dav/main -I/data/software/httpd-2.4.20/modules/generators -I/data/software/httpd-2.4.20/modules/mappers -prefer-pic -c regexp.c && touch regexp.slo
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -o mod_sed.la -rpath /usr/local/apache2/modules -module -avoid-version mod_sed.lo sed0.lo sed1.lo regexp.lo -export-symbols-regex sed_module
/usr/local/apr/build-1/libtool[1086]: eval: syntax error at line 1: `|' unexpected
*** Error code 3
make: Fatal error: Command failed for target `mod_sed.la'
Current working directory /data/software/httpd-2.4.20/modules/filters
*** Error code 1
The following command caused the error:
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi; \
list=''; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n 'mod_buffer.la mod_ratelimit.la mod_reqtimeout.la mod_ext_filter.la mod_request.la mod_include.la mod_filter.la mod_substitute.la mod_sed.la mod_deflate.la'; then \
echo "Building shared: mod_buffer.la mod_ratelimit.la mod_reqtimeout.la mod_ext_filter.la mod_request.la mod_include.la mod_filter.la mod_substitute.la mod_sed.la mod_deflate.la"; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /data/software/httpd-2.4.20/modules/filters
*** Error code 1
The following command caused the error:
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi; \
list='aaa cache core database debugging filters http loggers metadata proxy session slotmem ssl proxy/balancers arch/unix dav/main generators dav/fs mappers'; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n ''; then \
echo "Building shared: "; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /data/software/httpd-2.4.20/modules
*** Error code 1
The following command caused the error:
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi; \
list='srclib os server modules support'; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n ''; then \
echo "Building shared: "; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/data/software/httpd-2.4.20"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /data/software/httpd-2.4.20
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list=' srclib os server modules support'; \
for i in $list; do \
if test -d "$i"; then \
target="$otarget"; \
echo "Making $target in $i"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-$target"; \
fi; \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test "$otarget" = "all" && test -z 'httpd shared-build '; then \
made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
After the ./configure ....
edit the apr libtool srclib/apr/libtool and remove \$global_symbol_pipe | from following line
# The commands to list exported symbols.
export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols"
>>>>>
export_symbols_cmds="\$NM \$libobjs \$convenience | \$SED 's/.* //' | sort | uniq > \$export_symbols"
Then gmake.
(Thanks Andrew Henle)
Solaris 11.3 /usr/bin/nm was the problem. I changed it to gnm using environment variable and it solved all problems.
export NM=/usr/bin/gnm;
Use gmake instead of make.
Many, many projects implicitly require the use of GNU make.
I am trying install apache 2.4.7 in Solaris machine. First I did the configuration using
./configure
Then, When I do make. after some successful statements it throws me following error.
In file included from mod_ssl.c:27:
ssl_private.h:109:2: #error mod_ssl requires OpenSSL 0.9.8a or later
*** Error code 1
make: Fatal error: Command failed for target `mod_ssl.slo'
Current working directory /var/spool/pkg/httpd-2.4.7/modules/ssl
*** Error code 1
The following command caused the error:
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi; \
list=''; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n 'mod_ssl.la'; then \
echo "Building shared: mod_ssl.la"; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /var/spool/pkg/httpd-2.4.7/modules/ssl
*** Error code 1
The following command caused the error:
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi; \
list='aaa cache core database debugging filters http loggers metadata proxy session slotmem ssl proxy/balancers arch/unix dav/main generators dav/fs mappers'; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n ''; then \
echo "Building shared: "; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /var/spool/pkg/httpd-2.4.7/modules
*** Error code 1
The following command caused the error:
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi; \
list='srclib os server modules support'; for i in $list; do \
target="shared-build"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-shared-build"; \
fi; \
if test "$i" != "srclib"; then \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test -f 'modules.mk'; then \
if test -n ''; then \
echo "Building shared: "; \
if test "$made_local" != "yes"; then \
make "local-shared-build" || exit 1; \
fi; \
fi; \
fi; \
if test `pwd` = "/var/spool/pkg/httpd-2.4.7"; then \
echo "" ; \
fi
make: Fatal error: Command failed for target `shared-build-recursive'
Current working directory /var/spool/pkg/httpd-2.4.7
*** Error code 1
The following command caused the error:
otarget=`echo all-recursive|sed s/-recursive//`; \
list=' srclib os server modules support'; \
for i in $list; do \
if test -d "$i"; then \
target="$otarget"; \
echo "Making $target in $i"; \
if test "$i" = "."; then \
made_local=yes; \
target="local-$target"; \
fi; \
(cd $i && make $target) || exit 1; \
fi; \
done; \
if test "$otarget" = "all" && test -z 'httpd shared-build '; then \
made_local=yes; \
fi; \
if test "$made_local" != "yes"; then \
make "local-$otarget" || exit 1; \
fi
make: Fatal error: Command failed for target `all-recursive'
The same above error is coming even after I install latest openssl version.
OpenSSL 1.0.1f 6 Jan 2014
Please help me to resolve this issue.
I solved this by installing the development package for open ssl: "sudo apt-get install libssl-dev"
You're probably unintentionally trying to link against Oracle's outdated OpenSSL in /usr/sfw/lib. You may need to explicitly specify the path to your copy of OpenSSL 1.0.1f in your httpd configure command, e.g., "--with-ssl=/path/to/openssl".
i'm using centos 6 and jboss 7.1.1 final. i using this command to start jboss:./domain.sh,when it start,it output a lot of logs,and the worst thing is just when i disconnect the ssh,the server is down.i've already tried another command ./domain.sh & ,nothing changes.
in the domain.sh,it says,
if [ "x$LAUNCH_JBOSS_IN_BACKGROUND" = "x" ]; then
# Execute the JVM in the foreground
eval \"$JAVA\" -D\"[Process Controller]\" $PROCESS_CONTROLLER_JAVA_OPTS \
\"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/process-controller.log\" \
\"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
-jar \"$JBOSS_HOME/jboss-modules.jar\" \
-mp \"${JBOSS_MODULEPATH}\" \
org.jboss.as.process-controller \
-jboss-home \"$JBOSS_HOME\" \
-jvm \"$JAVA_FROM_JVM\" \
-mp \"${JBOSS_MODULEPATH}\" \
-- \
\"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/host-controller.log\" \
\"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
$HOST_CONTROLLER_JAVA_OPTS \
-- \
-default-jvm \"$JAVA_FROM_JVM\" \
"$#"
JBOSS_STATUS=$?
else
# Execute the JVM in the background
eval \"$JAVA\" -D\"[Process Controller]\" $PROCESS_CONTROLLER_JAVA_OPTS \
\"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/process-controller.log\" \
\"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
-jar \"$JBOSS_HOME/jboss-modules.jar\" \
-mp \"${JBOSS_MODULEPATH}\" \
org.jboss.as.process-controller \
-jboss-home \"$JBOSS_HOME\" \
-jvm \"$JAVA_FROM_JVM\" \
-mp \"${JBOSS_MODULEPATH}\" \
-- \
\"-Dorg.jboss.boot.log.file=$JBOSS_LOG_DIR/host-controller.log\" \
\"-Dlogging.configuration=file:$JBOSS_CONFIG_DIR/logging.properties\" \
$HOST_CONTROLLER_JAVA_OPTS \
-- \
-default-jvm \"$JAVA_FROM_JVM\" \
"$#" "&"
JBOSS_PID=$!
# Trap common signals and relay them to the jboss process
trap "kill -HUP $JBOSS_PID" HUP
trap "kill -TERM $JBOSS_PID" INT
trap "kill -QUIT $JBOSS_PID" QUIT
trap "kill -PIPE $JBOSS_PID" PIPE
trap "kill -TERM $JBOSS_PID" TERM
if [ "x$JBOSS_PIDFILE" != "x" ]; then
echo $JBOSS_PID > $JBOSS_PIDFILE
fi
# Wait until the background process exits
WAIT_STATUS=128
while [ "$WAIT_STATUS" -ge 128 ]; do
wait $JBOSS_PID 2>/dev/null
WAIT_STATUS=$?
if [ "$WAIT_STATUS" -gt 128 ]; then
SIGNAL=`expr $WAIT_STATUS - 128`
SIGNAL_NAME=`kill -l $SIGNAL`
echo "*** JBossAS process ($JBOSS_PID) received $SIGNAL_NAME signal ***" >&2
fi
done
if [ "$WAIT_STATUS" -lt 127 ]; then
JBOSS_STATUS=$WAIT_STATUS
else
JBOSS_STATUS=0
fi
if [ "$JBOSS_STATUS" -ne 10 ]; then
# Wait for a complete shudown
wait $JBOSS_PID 2>/dev/null
fi
if [ "x$JBOSS_PIDFILE" != "x" ]; then
grep "$JBOSS_PID" $JBOSS_PIDFILE && rm $JBOSS_PIDFILE
fi
fi
if [ "$JBOSS_STATUS" -eq 10 ]; then
echo "Restarting JBoss..."
else
exit $JBOSS_STATUS
fi
i tried to remove the if clause,but there is no miracle
or how to install the jboss 7 as service.thanks a lot.
Here comes the implementation of Xientd service. Try to run the script as a daemon/service. Try to add your own service with Xientd. Once you have started or triggered the service, It will run in the server even you have closed the SSH. See the followings links to get further awareness to set up your own service.
link1
link2
link3
These are comes with pure Linux administration stuffs but easy create your own. You should select a port dedicated for this service and make sure to open this port via firewall.
I hope this will help you