#7 add additional parameter

Any
wont-fix
nobody
None
5
2015-12-23
2012-06-22
No

how can i add additional java option(-Djava.util.logging.config.file=/Path/logging.properties) for calling wrapper.jar.

#!/bin/sh

status() {
eval ""/usr/share/mt/freshgate/Tomcat/jre/bin/java" "-Dwrapper.pidfile=/var/run/wrapper.freshgate.pid" "-Dwrapper.service=true" "-Dwrapper.visible=false" "-Djna.tmpdir=/usr/share/mt/freshgate/Components/conf/yajsw/bat/../tmp" "-jar" "/usr/share/mt/freshgate/Components/conf/yajsw/wrapper.jar" "-qx" "/usr/share/mt/freshgate/Components/conf/yajsw/conf/wrapper.conf" "
}

stopit() {
echo "Stopping freshgate ..."
eval ""/usr/share/mt/freshgate/Tomcat/jre/bin/java" "-Dwrapper.pidfile=/var/run/wrapper.freshgate.pid" "-Dwrapper.service=true" "-Dwrapper.visible=false" "-Djna.tmpdir=/usr/share/mt/freshgate/Components/conf/yajsw/bat/../tmp" "-jar" "/usr/share/mt/freshgate/Components/conf/yajsw/wrapper.jar" "-px" "/usr/share/mt/freshgate/Components/conf/yajsw/conf/wrapper.conf" "
}
startit() {
echo "Starting freshgate ..."
eval ""/usr/share/mt/freshgate/Tomcat/jre/bin/java" "-Dwrapper.pidfile=/var/run/wrapper.freshgate.pid" "-Dwrapper.service=true" "-Dwrapper.visible=false" "-Djna.tmpdir=/usr/share/mt/freshgate/Components/conf/yajsw/bat/../tmp" "-jar" "/usr/share/mt/freshgate/Components/conf/yajsw/wrapper.jar" "-tx" "/usr/share/mt/freshgate/Components/conf/yajsw/conf/wrapper.conf" "
}
case "$1" in
'start')
startit
;;

'stop')
stopit
;;

'restart')
stopit
startit
;;

'force-reload')
stopit
startit
;;

'status')
status
;;

*)
echo "Usage: $0 { start | stop | restart | status }"
exit 1
;;
esac

exit $?

Discussion

  • rzo

    rzo - 2012-06-23

    hello,

    to set the wrapper logging pls use the wrapper configuration file.
    to add java properties to the service command line use the configuration properties:

    wrapper.ntservice.additional.<n>

    see the docs for details.

    -- Ron

     
  • rzo

    rzo - 2015-12-23
    • status: open --> wont-fix
    • Group: --> Any
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks