From Cream Human, 1 Week ago, written in Plain Text.
  1. touch /etc/cron.d/simple-monitor
  2. echo "SHELL=/bin/bash" >> /etc/cron.d/simple-monitor
  3. echo "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> /etc/cron.d/simple-monitor
  4. echo ""
  5. echo "* *    * * *   root       /bin/bash /etc/simple-monitor/simple-monitor.sh" >> /etc/cron.d/simple-monito
captcha