Remove service dependencies field

This commit is contained in:
2025-11-09 14:32:01 +02:00
parent dea5760d75
commit 93ab1c0607
2 changed files with 15 additions and 39 deletions
+4 -7
View File
@@ -146,7 +146,6 @@ func Init() {
service := EnitService{
Name: "",
Description: "",
Dependencies: make([]string, 0),
Type: "",
StartCmd: "",
ExitMethod: "",
@@ -217,13 +216,11 @@ func Init() {
continue
}
if len(service.GetUnmetDependencies()) == 0 {
err := service.StartService()
if err != nil {
logger.Printf("Error: could not start service (%s): %s", service.Name, err)
}
remainingServices--
err := service.StartService()
if err != nil {
logger.Printf("Error: could not start service (%s): %s", service.Name, err)
}
remainingServices--
}
}
}