#/bin/sh
if [ -z "`grep "/sbin/reboot" /etc/crontab`" ]; then
echo '0 0 * * * /sbin/reboot'>> /etc/crontab
/sbin/service crond restart
fi
转载于:https://my.oschina.net/u/2005212/blog/308030
#/bin/sh
if [ -z "`grep "/sbin/reboot" /etc/crontab`" ]; then
echo '0 0 * * * /sbin/reboot'>> /etc/crontab
/sbin/service crond restart
fi
转载于:https://my.oschina.net/u/2005212/blog/308030