@@ -12,8 +12,6 @@ import (
1212 "path/filepath"
1313 "runtime"
1414
15- "github.com/lima-vm/lima/v2/pkg/autostart/launchd"
16- "github.com/lima-vm/lima/v2/pkg/autostart/systemd"
1715 "github.com/lima-vm/lima/v2/pkg/limatype"
1816 "github.com/lima-vm/lima/v2/pkg/textutil"
1917)
@@ -46,26 +44,6 @@ func (*notSupportedManager) RequestStop(_ context.Context, _ *limatype.Instance)
4644 return false , ErrNotSupported
4745}
4846
49- // Launchd is the autostart manager for macOS.
50- var Launchd = & TemplateFileBasedManager {
51- filePath : launchd .GetPlistPath ,
52- template : launchd .Template ,
53- enabler : launchd .EnableDisableService ,
54- autoStartedIdentifier : launchd .AutoStartedServiceName ,
55- requestStart : launchd .RequestStart ,
56- requestStop : launchd .RequestStop ,
57- }
58-
59- // Systemd is the autostart manager for Linux.
60- var Systemd = & TemplateFileBasedManager {
61- filePath : systemd .GetUnitPath ,
62- template : systemd .Template ,
63- enabler : systemd .EnableDisableUnit ,
64- autoStartedIdentifier : systemd .AutoStartedUnitName ,
65- requestStart : systemd .RequestStart ,
66- requestStop : systemd .RequestStop ,
67- }
68-
6947// TemplateFileBasedManager is an autostart manager that uses a template file to create the autostart entry.
7048type TemplateFileBasedManager struct {
7149 enabler func (ctx context.Context , enable bool , instName string ) error
0 commit comments