formatting

This commit is contained in:
Fran Jurmanović
2024-07-16 22:50:54 +02:00
parent 6e638bfa84
commit 6137b55a3c
12 changed files with 128 additions and 139 deletions

15
local/scripts/run_sc.ps1 Normal file
View File

@@ -0,0 +1,15 @@
param (
[string]$Action,
[string]$ServiceName
)
if ($Action -eq "start") {
sc.exe start $ServiceName
} elseif ($Action -eq "stop") {
sc.exe stop $ServiceName
} elseif ($Action -eq "restart") {
sc.exe stop $ServiceName
sc.exe start $ServiceName
} else {
Write-Error "Invalid action specified. Use 'start', 'stop', or 'restart'."
}