mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-03-25 23:30:41 +01:00
cmd/ctrld: use sysv service wrapper for "unix-systemv" platform
This commit is contained in:
committed by
Cuong Manh Le
parent
de32dd8ba4
commit
6c2996a921
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user