- #!/bin/bash
- p="$(pwd)"
- cd /home/httpd/cloud.artcloudnetwork.com/site
- if [ ! -f /tmp/runcron.run ]; then
- touch /tmp/runcron.run
- 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"
- rm /tmp/runcron.run
- else
- echo "trovato file lock runcron"
- ls -al /tmp/runcron.run
- fi
- cd "${p}"
|