Bug #4
CRON Task is not added to the system upon module iinstallation
| Status: | Closed | Start: | 04/25/2009 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Customer Service Reporting 1.0.0 |
Description
CRON Task is not added to the system upon module installation.
crontab is not writable by the module installation routine. A work around is needed
Related issues
| related to Weather by ZIP Code - Bug #21: TTS File Cleanup task not added to crontab upon module installation | Closed | 05/01/2009 | 05/15/2009 |
History
Updated by tshif almost 3 years ago
Have not found the file freepbx-cron-scheduler.php yet - but, it may be able to help us overcome the inability to write to the cron job file with a module installer.
The "standard entry" in this table looks like this (with column headers shown)
module id time freq lasttime command module_admin UPDATES 20 24 1241137802 /var/lib/asterisk/bin/module_admin listonline
Updated by tshif almost 3 years ago
This talks about the function briefly.
http://freepbx.org/trac/changeset/4419
And contains this info:
It wakes up hourly and works with cronmanager
- have retrieve_conf check if freepbx-cron-scheduler.php is running and start it if not.
- the cron job is run hourly, at a random minute setting per install. In conjunction with the online update checker choosing a random hour to run, the combo will distribute hits to the server.Updated by tshif almost 3 years ago
- Target version set to Customer Service Reporting 1.0.0
Updated by jacobsj almost 3 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
I had to add specification for the day of the week that users want the cron to run because the built in cronmanager in FreePBX is designed to run scripts once a day or more often. Because we only want this to run once a week, I had to limit filter the script running based on the day of the week. I am allowing the user to specify the day, though Sunday will be the best day usually.