Skip to content

[FIX JENKINS-22685] Jenkins cannot restart Windows service#1238

Merged
daniel-beck merged 1 commit intojenkinsci:masterfrom
gmjck:master
May 23, 2014
Merged

[FIX JENKINS-22685] Jenkins cannot restart Windows service#1238
daniel-beck merged 1 commit intojenkinsci:masterfrom
gmjck:master

Conversation

@gmjck
Copy link
Copy Markdown
Contributor

@gmjck gmjck commented May 13, 2014

Use "restart!" instead of "restart" when calling the Windows service wrapper to restart Jenkins. Otherwise, the service wrapper kills itself before completing the stop-wait-start procedure. JENKINS-22685 for issue description, and see Winsw README ("Restarting service from itself") for details about the use and intention of "restart!".

@cloudbees-pull-request-builder
Copy link
Copy Markdown

core » jenkins-core #691 UNSTABLE
Looks like there's a problem with this pull request

@cloudbees-pull-request-builder
Copy link
Copy Markdown

core » jenkins-core #695 SUCCESS
This pull request looks good

@oleg-nenashev
Copy link
Copy Markdown
Member

The issue seems to be the LTS candidate
Could you merge changes into one commit? It would be great if you explicitly reference the issue commit message. E.g. "[FIXED JENKINS-22685] - Call restart! to properly restart the Windows service"

… to properly restart the service.

Using "restart!" instead of "restart" performs the restart in a separate process, so the service wrapper doesn't kill itself.
@gmjck
Copy link
Copy Markdown
Contributor Author

gmjck commented May 23, 2014

Done... hopefully correctly. Let me know if other changes are needed.

@oleg-nenashev
Copy link
Copy Markdown
Member

👍

daniel-beck added a commit that referenced this pull request May 23, 2014
[FIX JENKINS-22685] Jenkins cannot restart Windows service
@daniel-beck daniel-beck merged commit f434c22 into jenkinsci:master May 23, 2014
daniel-beck added a commit that referenced this pull request May 23, 2014
@cloudbees-pull-request-builder
Copy link
Copy Markdown

core » jenkins-core #734 SUCCESS
This pull request looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants