```ruby

describe package('memcached') do
  it { should be_installed }
end

describe service('memcached_backend_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe service('memcached_web_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe service('memcached_painful_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe port(11_212) do
  it { should be_listening }
end

describe port(11_213) do
  it { should be_listening }
end

describe port(11_214) do
  it { should be_listening }
end
```

Switch back to command for process checking
user
```ruby

describe package('memcached') do
  it { should be_installed }
end

describe service('memcached_backend_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe service('memcached_web_cache') do
  it { should be_installed }
  it { should be_enabled }
  it { should be_running }
end

describe command('ps aux | grep -q /va[r]/run/memcached_painful_cache.pid') do
  it { should exist }
end

describe port(11_212) do
  it { should be_listening }
end

describe port(11_213) do
  it { should be_listening }
end

describe port(11_214) do
  it { should be_listening }
end
```
assistant