Skip to content

Commit 35cb7dd

Browse files
author
Aditya
committed
Fix documentation reference to WinSW source code
Update comment to reference the actual source code location of the elevation check rather than the extensions documentation page which does not document the /elevated flag.
1 parent fa053f3 commit 35cb7dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/hudson/lifecycle/WindowsServiceLifecycle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void restart() throws IOException, InterruptedException {
145145
// use restart! to run hudson/jenkins.exe restart in a separate process, so it doesn't kill itself
146146
// Pass /elevated to skip WinSW's elevation check when the service ACL grants sufficient permissions
147147
// This allows Jenkins running as a limited user to restart when proper service permissions are configured
148-
// See: https://github.com/winsw/winsw/blob/master/docs/extensions.md
148+
// See: https://github.com/winsw/winsw/blob/ee29eee8cf98864b786c9b5e6bd6f6ce351b85a3/src/Core/ServiceWrapper/Main.cs#L911-L916
149149
int r = new LocalLauncher(task).launch().cmds(executable, "/elevated", "restart!")
150150
.stdout(task).pwd(home).join();
151151
if (r != 0)

0 commit comments

Comments
 (0)