[jboss-jira] [JBoss JIRA] (WFLY-7381) [GSS](7.1.0) windows service (service.bat) failed to install if the value of /serviceuser has a white space inside

Brad Maxwell (JIRA) issues at jboss.org
Tue Oct 25 20:53:00 EDT 2016


Brad Maxwell created WFLY-7381:
----------------------------------

             Summary: [GSS](7.1.0) windows service (service.bat) failed to install if the value of /serviceuser has a white space inside
                 Key: WFLY-7381
                 URL: https://issues.jboss.org/browse/WFLY-7381
             Project: WildFly
          Issue Type: Bug
          Components: Scripts
    Affects Versions: 10.1.0.Final
            Reporter: Brad Maxwell
            Assignee: Tomaz Cerar
            Priority: Minor


When using "service.bat install /serviceuser ..." command to install window service, if the account name behind /serviceuser has a whit space inside like ".\JBoss User", it will failed to install windows service.

Run command: service.bat install /serviceuser ".\JBoss User" /servicepass "change it" /startup /debug

When starting it, an error window poped up:
{code}
Windows could not start the JBossEAP6 on Local Computer.
For more information, review the System Event Log. 
If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code1.
{code}

Additional info:
Possible fix is editing "service.bat" and add double quotation marks on %SERVICE_USER% 

>From 
{code}
set RUNAS=--ServiceUser=%SERVICE_USER% --ServicePassword=%SERVICE_PASS%
{code}

to
{code}
set RUNAS=--ServiceUser="%SERVICE_USER%" --ServicePassword="%SERVICE_PASS%"
{code}




--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the jboss-jira mailing list