runcron.sh 407 B

12345678910111213
  1. #!/bin/bash
  2. p="$(pwd)"
  3. cd /home/httpd/cloud.artcloudnetwork.com/site
  4. if [ ! -f /tmp/runcron.run ]; then
  5. touch /tmp/runcron.run
  6. su www-data -s /bin/bash -c "/usr/bin/php8.3 -c /etc/php/8.3/fpm/php.ini -d apc.enable_cli=1 -d memory_limit=2048M -f /home/httpd/cloud.artcloudnetwork.com/site/cron.php"
  7. rm /tmp/runcron.run
  8. else
  9. echo "trovato file lock runcron"
  10. ls -al /tmp/runcron.run
  11. fi
  12. cd "${p}"