cmd/ctrld: use sysv service wrapper for "unix-systemv" platform

This commit is contained in:
Cuong Manh Le
2023-07-06 00:40:50 +07:00
committed by Cuong Manh Le
parent de32dd8ba4
commit 6c2996a921

View File

@@ -22,7 +22,9 @@ func newService(i service.Interface, c *service.Config) (service.Service, error)
switch {
case router.IsOldOpenwrt():
return &procd{&sysV{s}}, nil
case router.IsGLiNet(): // TODO: unify for other SysV system.
case router.IsGLiNet():
return &sysV{s}, nil
case s.Platform() == "unix-systemv":
return &sysV{s}, nil
}
return s, nil