Service starting with logs

Former-commit-id: e4c030516b
This commit is contained in:
Owen
2025-07-23 22:05:35 -07:00
parent 4d33016389
commit 25a9b83496
3 changed files with 87 additions and 7 deletions

View File

@@ -53,7 +53,9 @@ func main() {
fmt.Println("Service removed successfully")
return
case "start":
err := startService()
// Pass the remaining arguments (after "start") to the service
serviceArgs := os.Args[2:]
err := startService(serviceArgs)
if err != nil {
fmt.Printf("Failed to start service: %v\n", err)
os.Exit(1)
@@ -77,7 +79,9 @@ func main() {
fmt.Printf("Service status: %s\n", status)
return
case "debug":
err := debugService()
// Pass the remaining arguments (after "debug") to the service
serviceArgs := os.Args[2:]
err := debugService(serviceArgs)
if err != nil {
fmt.Printf("Failed to debug service: %v\n", err)
os.Exit(1)