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

Dave Bennett commented on DAEMON-367:
-------------------------------------

I haven't used an ImageFile parameter as I don't know how that might be used, 
and I don't understand what you mean by a 'start time' parameter. The service 
logs-on with a 'Local System Account'. 

I installed the service via the following .bat file as I had learnt to do when 
I first used this method.

set SERVICE_NAME=BSS2SRVB2
set PR_INSTALL=C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\prunsrv.exe
REM Service log configuration
set PR_LOGPREFIX=BSS2SRVB2
set PR_LOGPATH=C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\logs
set PR_STDOUTPUT=C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\logs\stdoutb2.txt
set PR_STDERROR=C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\logs\stderrb2.txt
set PR_LOGLEVEL=Error
REM Path to java installation
set PR_JVM=C:\Program Files (x86)\Java\jdk1.7.0_13\jre\bin\server\jvm.dll
set PR_CLASSPATH=BSS2SRVB2.jar
REM Startup configuration (manual or auto)
set PR_STARTUP=auto
set PR_STARTMODE=jvm
set PR_STARTCLASS=uk.co.parkthorn.services.Basic2Service
set PR_STARTMETHOD=startService
REM Shutdown configuration
set PR_STOPMODE=jvm
set PR_STOPCLASS=uk.co.parkthorn.services.Basic2Service
set PR_STOPMETHOD=stopService
REM JVM configuration
set PR_JVMMS=256
set PR_JVMMX=1024
set PR_JVMSS=4000
set PR_JVMOPTIONS=-Duser.language=EN;-Duser.region=gb
REM Install service
C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\prunsrv.exe //IS//BSS2SRVB2
C:\Data\Eclipse_Projects\BSS2\BSS2_01.07\jar\prunsrv.exe //US//BSS2SRVB2 
--Description "BSS2 Basic2 Service"


> Windows service fails to start after Windows 10 Creators Update
> ---------------------------------------------------------------
>
>                 Key: DAEMON-367
>                 URL: https://issues.apache.org/jira/browse/DAEMON-367
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.15
>         Environment: Windows 10 Home and Pro after Creators Update. Windows 
> version 10.0.15063 Build 15063
>            Reporter: Dave Bennett
>              Labels: prunsrv, windows10
>
> I have been running windows services via prunsrv for quite a long time 
> without any problem. Since updating my PC (Windows 10 Home) recently with the 
> Creators Update version of Windows 10 any new service that I install will not 
> start. Similar services that were installed prior to the update work ok as 
> before. When I try to start a new service, the system event log contains the 
> message "The BSS2SRVB2 service terminated with the following service-specific 
> error: Incorrect function". The service was initially configured with 
> PR_LOGLEVEL set to "Error" and no log files were created. When I set the 
> level to "Debug", the following log files were created,
> - stderrb2.txt contains,
> 2017-06-29 08:45:34 Commons Daemon procrun stderr initialized
> - stdoutb2.txt contains,
> 2017-06-29 08:45:34 Commons Daemon procrun stdout initialized
> - commons-daemon.2017-06-29.log contains,
> [2017-06-29 08:45:34] [debug] ( prunsrv.c:1679) [20104] Commons Daemon 
> procrun log initialized
> [2017-06-29 08:45:34] [info]  ( prunsrv.c:1683) [20104] Commons Daemon 
> procrun (1.0.15.0 32-bit) started
> [2017-06-29 08:45:34] [info]  ( prunsrv.c:1596) [20104] Running 'BSS2SRVB2' 
> Service...
> [2017-06-29 08:45:34] [debug] ( prunsrv.c:1374) [19220] Inside ServiceMain...
> [2017-06-29 08:45:34] [debug] ( prunsrv.c:844 ) [19220] reportServiceStatusE: 
> 2, 0, 3000, 0
> [2017-06-29 08:45:34] [info]  ( prunsrv.c:1127) [19220] Starting service...
> [2017-06-29 08:45:34] [error] ( prunsrv.c:1190) [19220] Missing service 
> ImageFile
> [2017-06-29 08:45:34] [error] ( prunsrv.c:1536) [19220] ServiceStart returned 
> 1
> [2017-06-29 08:45:34] [debug] ( prunsrv.c:844 ) [19220] reportServiceStatusE: 
> 1, 1066, 0, 1
> [2017-06-29 08:45:34] [info]  ( prunsrv.c:1598) [20104] Run service finished.
> [2017-06-29 08:45:34] [info]  ( prunsrv.c:1764) [20104] Commons Daemon 
> procrun finished
> The service processes have been written by myself in Java. 
> I have also seen the same problem on another PC (Windows 10 Pro) so this 
> suggests that it is not specific to my PC.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to