-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Apache Commons Daemon prunsrv to 1-4-0 #30524
Update Apache Commons Daemon prunsrv to 1-4-0 #30524
Conversation
#build Note: Target locations of links might be accessible only to IBM employees. |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_FZCjsdAmEe-f-sI4gb7_Pw Target locations of links might be accessible only to IBM employees. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#libby Note: Target locations of links might be accessible only to IBM employees. |
Code analysis and actionsDO NOT DELETE THIS COMMENT.
|
With the new version of prunsrv.exe, there is a slight change of behavior for the registerWinService command when the server has been created, but never started. In that situation, there is no "logs" directory under the server directory,
("!WLP_OUTPUT_DIR!%SERVER_NAME%\logs). The previous version of prunsrv did not complain about that. The new version displays an warning/error message:
[2025-01-13 10:52:15] [warn] [12240] Failed to grant service user 'LocalSystem' write permissions to log path 'C:\wlp\usr\servers\<SERVER_NAME>\logs' due to error '2: The system cannot find the file specified.'
To avoid the message in this scenario, I added a check to see if the directory exists before calling prunsrv to register the service. If the "logs" dir doesn't exist, the server.bat script will create it.