restart.sh
[code]#!/bin/bash
/etc/init.d/mysqld stop
/etc/init.d/apache2 stop
sleep 0.5
/etc/init.d/mysqld start
/etc/init.d/apache2 start[/code]
chmod +x restart.sh ile /home dizinine kaydettiğini varsayarsak crontab -e ile girip aşağıdaki satırı eklersin.
[code]
*/1 * * * root /home/restart.sh[/code]