• BOOKMARK

  • ADD TO FAVORITES

  • REFERENCES


  • MARC

    Mailing list ARChives
    - Search by -
     Subjects
     Authors
     Bodies





    FOLDOC

    Computing Dictionary




  • Text Link Ads






Creating a Stay Alive Script for MySQL

MySQL Tutorials.

Creating a Stay Alive Script for MySQL

New postby Ranman on Thu Mar 27, 2008 10:51 pm

Code: [Select all] [Expand/Collapse] [Download] (Untitled)
# Create a file called stay_alive-mysql containing the following lines:
#!/bin/sh
#
# Stay alive crontab script:
#
if !(ps -u mysql | grep safe_mysqld); then
/path/to/bin/safe_mysqld --user=mysql --log --log-update=mybackupmethod &
fi

# At your command line prompt type:
crontab -e

# Add these two lines:
# Lets check every 20 minutes that MySQL running.
*/20 * * * *    /path/to/the/stay_alive-mysql 1> /dev/null 2> /dev/null

User avatar
Ranman
Site Admin
 
Posts: 25
Joined: Thu Mar 27, 2008 12:27 am

Return to MySQL Tutorials

Who is online

Users browsing this forum: No registered users and 0 guests

  • MORE RESOURCE


  • Linux

    The Distributions





    Linux

    The Software





    Linux

    The News



  • MARKETING






  • Toll Free
cron