Thanks for you reply!
Well, this crons, are executed at the time that (or same time in all servers)... I like preferer are executed ar other time with less work in the server.
What's my problem? That I am relatively new to CWP and I don't know how to change some aspects.
As I said in the first thread, I modified the files by adding the time to the beginning of the line, but as I imagined, it gives error (this error):
/etc/cron.daily/cwp:
/etc/cron.daily/cwp: line 1: 30: command not found
/etc/cron.daily/cwp: line 2: 30: command not found
Error because I am adding the time format to it but it is a php file and not a bash (I think so) and therefore it does not execute it.
I understand that maybe the anacron schedule should be changed, but I'm not sure ...
I just want to change the time of those checks to a better time for me, and I can't figure out how to do it ...
Thanks for your attention.
Edit: I comment the lines in /etc/cron.daily/cwp
# /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
# /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php
I execute first command in ssh:
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
All perfect, the respond its good:
[root@server4 ~]# /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload httpd.service
I add this command in cron:
20 12 * * * /usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php
I have this email with error:
====================================================
============= CentOS Web Panel Cron ================
====================================================
###########################
Firewall Flush Daily Blocks
###########################
######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
/scripts/cpanel_addhandlers: line 161: service: command not found
sh: service: command not found
sh: line 2: service: command not found
But not with the line of backup (also I added in cron) this result is good.
I don't understand what, if I execute first line in ssh, work good, if its executed in cron, I have this mail with error...