MCPcopy Create free account
hub / github.com/containerd/nerdctl / systemctlArgs

Method systemctlArgs

pkg/testutil/testutil.go:142–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (b *Base) systemctlArgs() []string {
143 var systemctlArgs []string
144 if os.Geteuid() != 0 {
145 systemctlArgs = append(systemctlArgs, "--user")
146 }
147 return systemctlArgs
148}
149
150func (b *Base) KillDaemon() {
151 b.T.Helper()

Callers 3

KillDaemonMethod · 0.95
EnsureDaemonActiveMethod · 0.95
DumpDaemonLogsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected