title: Best practice to check if a process is running on Linux?
body: <p>I installed chef server with the script below. I'm new to linux and I'm trying to learn how to set up chef server. I ran the commands chef.io provides and the script succeeded. I'm really not sure how to check or what I should do to check if the process is running.  What are the best practices for linux on how to see if a process is running? What are the things I could do to find out what I need to know?</p>
  
  <pre><code>        #!/bin/bash \
  echo "Do your provisioning here" \
  sudo wget https://packages.chef.io/files/stable/chef-server/12.14.0/el/7/chef-server-core-12.14.0-1.el7.x86_64.rpm \
  sudo chmod a+x chef-server-core-12.14.0-1.el7.x86_64.rpm
  sudo rpm -Uvh ./chef-server-core-12.14.0-1.el7.x86_64.rpm
  sudo chef-server-ctl reconfigure \
  sudo openssl rsa -in private.pem -outform PEM -pubout -out ~/.ssh/chef-server.pem \
  sudo chef-server-ctl user-create admin 'admin' 'email' 'password' --filename ~/.ssh/chef-server.pem \
  sudo openssl rsa -in private.pem -outform PEM -pubout -out ~/.ssh/chef-server-validator.pem \
  sudo chef-server-ctl org-create short_name 'idevops' --association_user admin --filename ~/.ssh/chef-server-validator.pem \
  sudo openssl rsa -in private.pem -outform PEM -pubout -out ~/.ssh/chef-coffee-server-validator.pem \
  sudo chef-server-ctl org-create 4thcoffee 'iDevops 4th Coffee' --association_user admin --filename ~/.ssh/chef-coffee-server-validator.pem \
  sudo chef-server-ctl install chef-manage \
  sudo chef-server-ctl reconfigure \
  sudo chef-manage-ctl reconfigure \
  sudo chef-server-ctl install opscode-push-jobs-server \
  sudo chef-server-ctl reconfigure \
  sudo opscode-push-jobs-server-ctl reconfigure \
  sudo chef-server-ctl install opscode-reporting \
  sudo chef-server-ctl reconfigure \
  sudo opscode-reporting-ctl reconfigure \
  sudo chef-server-ctl install PACKAGE_NAME --path /path/to/package/directory \
  sudo chef-server-ctl install chef-manage --path /root/packages \
  sudo mkdir /etc/opscode &amp;&amp; sudo touch /etc/opscode/chef-server.rb \
  sudo echo "license['nodes'] = 0" &gt;&gt; /etc/opscode/chef-server.rb \
  sudo chef-server-ctl reconfigure
  </code></pre>