[
https://issues.jboss.org/browse/JBAS-9335?page=com.atlassian.jira.plugin....
]
Daniel Bevenius commented on JBAS-9335:
---------------------------------------
I applied the patch and tested on windows:
{noformat}
C:\work\jboss\as6\new-trunk\build\target\jboss-6.1.0-SNAPSHOT\bin>service.bat install
Service JBoss Application Server 6.1 installed
C:\work\jboss\as6\new-trunk\build\target\jboss-6.1.0-SNAPSHOT\bin>net start JBAS61SVC
The JBoss Application Server 6.1 service is starting.
The JBoss Application Server 6.1 service was started successfully.
C:\work\jboss\as6\new-trunk\build\target\jboss-6.1.0-SNAPSHOT\bin>net stop JBAS61SVC
The JBoss Application Server 6.1 service was stopped successfully.
{noformat}
Errors in windows service.bat error handling
--------------------------------------------
Key: JBAS-9335
URL:
https://issues.jboss.org/browse/JBAS-9335
Project: Legacy JBoss Application Server 6
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Other
Affects Versions: 6.0.0.Final
Environment: Windows
Reporter: Stephen Parry
Assignee: Shelly McGowan
Priority: Minor
Fix For: 6.1.0
Attachments: JBAS-9335.patch
service.bat
The errorlevel handling in the service.bat script is incorrect causing misleading error
messages.
The syntax:
if errorlevel 1
is used meaning "if errorlevel == 1", when it actual means "if errorlevel
>= 1". The syntax that should be used is:
if %errorlevel% EQU 1
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira