Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Created July 3, 2013 16:51
Show Gist options
  • Select an option

  • Save hub-cap/5920403 to your computer and use it in GitHub Desktop.

Select an option

Save hub-cap/5920403 to your computer and use it in GitHub Desktop.
#first get the pid
sudo cat /var/run/mysqld/mysqld.pid
9036
#then make sure its in proc
-d /proc/9036/
# If we always do this, we can stop running the mysql ping's and just check /proc/PID to make sure its still running every X seconds when we do the pingcheck.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment