Check a process is running with Salt Stack? Is it possible to check if a specific process is running via a Salt State? Looking through Salt Stack documentation and scouring forums I haven't found any way of simply checking if a service is running and reporting the output.

I have however found this:

httpd-absent:
  process.absent:
    - name: apache2


The opposite of this would be ideal for my needs e.g:

httpd-present:
  process.present:
    - name: apache2


Is anyone aware of a method in Salt which would check if a defined process is running based on a name or pattern (regex) and simply report back with a true/false or similar?
It's a bit hacky, but you can always do something like:

check_process:
  cmd.run:
    name: ps aux | grep '[f]oobar'


The exit code will be non-0 and the state will fail if foobar doesn't exist.