Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: ThomasT on October 28, 2021, 07:39:03 PM

Title: CRONTAB JOB NOT RUNNING IF I AM NOT LOGGED IN
Post by: ThomasT on October 28, 2021, 07:39:03 PM
I created a crontab job to load the memory tables into mysql database from a file stored on the server.
A simple php script.  Added this crontab job running when system boots:
root   php /home/altaqs/public_html/memory_tables_import.php

The problem is that the crontab job is executed  at startup  if only I am logged into the CWP panel.
If I am not logged into the CWP, the startup Crontab is not executed.

CWP version: 0.9.8.1096

How can I fix it?

Thank you


Title: Re: CRONTAB JOB NOT RUNNING IF I AM NOT LOGGED IN
Post by: ThomasT on October 29, 2021, 01:08:58 AM
 :) I found it.  SQL database did not load correctly, because MariaDB was disabled. Since SQL service was not running, could not import data in the memory tables