Don't run if mysqld isn't running

skiles
2012-05-09
2013-05-29
  • skiles
    skiles
    2012-05-09

    I'm using AutoMySQLBackup to back up my MAMP local environment on OS X 10.6 It works as expected, including throwing an error when MAMP isn't running (i.e., the mysqld process isn't running) and so the script errors. That's fine. I don't need backups when I'm not running MAMP.

    What's the best way to cancel a run if mysqld isn't running?

    Thanks!