Skip to content

Commit a0148fe

Browse files
authored
Merge pull request #194 from pradeep-hegde/pradeep-hegde-csi-proxy-doc
Autostart CSI proxy on boot
2 parents 4799a82 + 4ae723b commit a0148fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ On successful execution of `make build`, the output binary `csi-proxy.exe` will
5151
csi-proxy.exe can be installed and run as binary or run as a Windows service on each Windows node. See the following as an example to run CSI Proxy as a web service.
5252
```
5353
$flags = "-windows-service -log_file=C:\etc\kubernetes\logs\csi-proxy.log -logtostderr=false"
54-
sc.exe create csiproxy binPath= "C:\etc\kubernetes\node\bin\csi-proxy.exe $flags"
54+
sc.exe create csiproxy start= "auto" binPath= "C:\etc\kubernetes\node\bin\csi-proxy.exe $flags"
5555
sc.exe failure csiproxy reset= 0 actions= restart/10000
5656
sc.exe start csiproxy
5757
```

scripts/sync-csi-proxy.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Copy-Item -Path "C:\Users\$env:UserName\csi-proxy.exe" -Destination "C:\etc\kube
1313

1414
# restart the csiproxy service
1515
$flags = "-v=5 -windows-service -log_file=C:\etc\kubernetes\logs\csi-proxy.log -logtostderr=false"
16-
sc.exe create csiproxy binPath= "C:\etc\kubernetes\node\bin\csi-proxy.exe $flags"
16+
sc.exe create csiproxy start= "auto" binPath= "C:\etc\kubernetes\node\bin\csi-proxy.exe $flags"
1717
sc.exe failure csiproxy reset= 0 actions= restart/10000
1818
sc.exe start csiproxy
1919

0 commit comments

Comments
 (0)