8 type supervisor interface {
9 Running(ctx context.Context) (bool, error)
10 Start(ctx context.Context) error
13 func newSupervisor(ctx context.Context, name, cmd string, args ...string) supervisor {
14 if _, err := os.Stat("/run/systemd/system"); err == nil {