[ 
https://issues.apache.org/jira/browse/DAEMON-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17055107#comment-17055107
 ] 

rajiv devaraj commented on DAEMON-416:
--------------------------------------

after using amd64 , this is the error i'm getting , 

below is the command is used to install the service

prunsrv //IS//NEW_SERVICE 
--Install=C:\commons-daemon-1.2.2-bin-windows\amd64\prunsrv.exe 
--Jvm=C:\<SOME_PATH>\jdk1.8.0_221\jre\bin\server\jvm.dll --StartMode=jvm 
--StopMode=jvm \

[2020-03-09 21:23:22] [info] [ 1104] Apache Commons Daemon procrun (1.2.2.0 
64-bit) started.
[2020-03-09 21:23:23] [info] [ 1104] Installing service 'NEW_SERVICE' name ''.
[2020-03-09 21:23:23] [info] [ 1104] Service 'NEW_SERVICE' installed.
[2020-03-09 21:23:23] [info] [ 1104] Apache Commons Daemon procrun finished.
[2020-03-09 21:27:01] [info] [ 4336] Apache Commons Daemon procrun (1.2.2.0 
64-bit) started.
[2020-03-09 21:27:01] [info] [ 4336] Running Service 'NEW_SERVICE'...
[2020-03-09 21:27:01] [error] [ 4336] StartServiceCtrlDispatcher for 
'NEW_SERVICE' failed.
[2020-03-09 21:27:01] [error] [ 4336] The service process could not connect to 
the service controller.
[2020-03-09 21:27:01] [error] [ 4336] Apache Commons Daemon procrun failed with 
exit value: 4 (failed to run service).
[2020-03-09 21:27:01] [error] [ 4336] The service process could not connect to 
the service controller.

 

> prunsrv.exe adding special character while executing in windows 2019
> --------------------------------------------------------------------
>
>                 Key: DAEMON-416
>                 URL: https://issues.apache.org/jira/browse/DAEMON-416
>             Project: Commons Daemon
>          Issue Type: Bug
>         Environment: Windows 2019
>            Reporter: rajiv devaraj
>            Priority: Major
>
> While executing {{prunsrv.exe}} from an earlier version of Windows, (like 
> 2016), the below command was working. But upon introducing the same statement 
> for Windows 2019, it's not starting the service.
> I inspected the registry to check the path in which the process was created. 
> It seems to add a random special character before the path, which is why it's 
> not able to start.
> Observed Path:
>  
> {{C:\<SOME_PATH>/prunsrv.exe ^E//RS//<SOME_PROCESS>}}
> Here near {{//RS}}, {{^E}} is prepended and it's random special character is 
> generated for every execution.
> Expected Path:
>  
> {{C:\<SOME_PATH>/prunsrv.exe //RS//<SOME_PROCESS>}}
> This is the line which is responsible to initiate the process which is 
> triggered from {{.bat}} file:
>  
> {{"%SOMEPATH%/bin/prunsrv.exe" //IS//%SERVICE_NAME%}}
> I need some help on how to remove this special character before the process 
> is started.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to