[
https://issues.apache.org/jira/browse/DAEMON-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Thomas resolved DAEMON-473.
--------------------------------
Resolution: Invalid
Jira is not a support forum. Please use the commons users mailing list for
assistance.
https://commons.apache.org/mail-lists.html
> Migration from procrun 1.0.15 to 1.4.1 is getting failed
> --------------------------------------------------------
>
> Key: DAEMON-473
> URL: https://issues.apache.org/jira/browse/DAEMON-473
> Project: Commons Daemon
> Issue Type: Bug
> Affects Versions: 1.4.1
> Reporter: vinay reddy
> Priority: Major
>
> I am currently using Procrun version 1.0.15 for my Java application on a
> Windows 10 machine. We want to upgrade the Procrun binary to version 1.4.1
> due to some security issues present in 1.0.15.
> However, after updating, the process is not working with version 1.4.1. The
> same script works correctly with version 1.0.15.
> Please provide the necessary steps, parameters, or configuration changes
> required to resolve this issue with Procrun 1.4.1.
> Below is the script we are using to install the service
> {panel:title=Installation_script.bat}
> set SERVICE_NAME=testService
> set PR_INSTALL=%~dp0%Procrun.exe
> set PR_DESCRIPTION=Windows test Service
>
> REM Service log configuration
> set PR_LOGPREFIX=test-Procrun
> set PR_LOGPATH=%PARENT_DIR%\log\
> set PR_STDOUTPUT=%PARENT_DIR%\log\test-Procrun.out
> set PR_STDERROR=%PARENT_DIR%\log\test-Procrun.err
> set PR_LOGLEVEL=Error
>
> REM Path to java installation
> set PR_JVM=%PARENT_DIR%\jdk\bin\server\jvm.dll
> set PR_CLASSPATH=%PARENT_DIR%\vprobe\lib*;%PARENT_DIR%\bin*;%PARENT_DIR%\conf*
>
> REM Startup configuration
> set PR_STARTUP=auto
> set PR_STARTMODE=jvm
> set PR_STARTCLASS=com..core.test
> set PR_STARTMETHOD=start
>
> REM Shutdown configuration
> set PR_STOPMODE=jvm
> set PR_STOPCLASS=com.core.test
> set PR_STOPMETHOD=stop
>
> REM JVM configuration
> set PR_JVMMS=128
> set PR_JVMMX=2048
> set PR_JVMSS=128
> set
> PR_JVMOPTIONS=-Duser.language=EN;-Duser.region=en;-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2,SSLv3;-Djdk.tls.client.protocols=TLSv1,TLSv1.1,TLSv1.2,SSLv3;-Xss256k
> REM this is need for take arguments
> set SERVICE_CMD=%1
> shift
> REM checking first argument having data or not
> if "x%1x" == "xx" goto checkServiceCmd
> :checkServiceCmd
> if /i %SERVICE_CMD% == install goto doInstall
> if /i %SERVICE_CMD% == uninstall goto doRemove
> if /i %SERVICE_CMD% == runservice goto doStart
> :doInstall
> REM Install service
> Procrun.exe //IS//%SERVICE_NAME%
> REM Procrun.exe //ES//%SERVICE_NAME%
> goto end
> :doRemove
> Procrun.exe //SS//%SERVICE_NAME%
> Procrun.exe //DS//%SERVICE_NAME%
> goto end
> :doStart
> Procrun.exe //ES//%SERVICE_NAME%
> goto end
> :end
> {panel}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)