mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 12:19:37 -06:00
allow providing list of services not to start
Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
@@ -248,12 +248,24 @@ func (s *Service) generateRunSet(cfg *ociscfg.Config) {
|
||||
return
|
||||
}
|
||||
|
||||
disabled := make(map[string]bool)
|
||||
if cfg.Runtime.Disabled != "" {
|
||||
e := strings.Split(strings.ReplaceAll(cfg.Runtime.Disabled, " ", ""), ",")
|
||||
for _, s := range e {
|
||||
disabled[s] = true
|
||||
}
|
||||
}
|
||||
|
||||
for name := range s.ServicesRegistry {
|
||||
runset = append(runset, name)
|
||||
if !disabled[name] {
|
||||
runset = append(runset, name)
|
||||
}
|
||||
}
|
||||
|
||||
for name := range s.Delayed {
|
||||
runset = append(runset, name)
|
||||
if !disabled[name] {
|
||||
runset = append(runset, name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user