Fix service name in firewall configuration and installation scripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# PowerShell script to create a new inbound rule in Windows Firewall
|
# PowerShell script to create a new inbound rule in Windows Firewall
|
||||||
$port = 5000
|
$port = 5000
|
||||||
$ruleName = "ResourceMonitorService"
|
$ruleName = "ResourceMonitorServicePublish"
|
||||||
if (Get-NetFirewallRule -DisplayName $ruleName) {
|
if (Get-NetFirewallRule -DisplayName $ruleName) {
|
||||||
Write-Host "Rule already exists, not creating a new one"
|
Write-Host "Rule already exists, not creating a new one"
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
sc create ResourceMonitorServicerrr binPath= "%~dp0ResourceMonitorService.exe --windows-service" start= auto
|
sc create ResourceMonitorService binPath="%~dp0ResourceMonitorService.exe --windows-service" start= auto
|
||||||
sc description ResourceMonitorServicerrr "A service that monitors system resource usage and exposes it via a web API."
|
sc description ResourceMonitorService "A service that monitors system resource usage and exposes it via a web API."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user