[ubuntu-uk] Shutdown mysql with cron

Sean Miller sean at seanmiller.net
Wed Aug 11 06:53:14 BST 2010

Why don't you write to a logfile then any errors that might be
occurring can be looked for


15 19 * * * root /etc/init.d/mysql stop >/var/log/mysql-stop.log 2>&1

2>&1 tells it to send errors, as well as messages, to the logfile (in
case you're not familiar with that syntax)...


More information about the ubuntu-uk mailing list