[ASTPPCOM-261] Crontab entries missing user which makes cron stop working entirely Created: 11/Nov/17 Updated: 01/Apr/21 Resolved: 01/Apr/21 |
|
| Status: | Done |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | ||
| Reporter: | alexheylin | Assignee: | Samir Doshi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The crontab entries are added without a user name which causes Inserting a valid user (like root - NOT recommended for production) between the _ _ * and the cd makes it work # Generate Invoice 0 1 * * * root cd /var/www/html/astpp/cron/ && php cron.php GenerateInvoice # Low balance notification 0 1 * * * root cd /var/www/html/astpp/cron/ && php cron.php UpdateBalance # Low balance notification 0 0 * * * root cd /var/www/html/astpp/cron/ && php cron.php LowBalance # Update currency rate 0 0 * * * root cd /var/www/html/astpp/cron/ && php cron.php CurrencyUpdate # Email Broadcasting 0 0 * * * root cd /var/www/html/astpp/cron/ && php cron.php BroadcastEmail |
| Comments |
| Comment by Ketan Kothari (Inactive) [ 28/Dec/17 ] |
|
[~AlexHeylin] You can setup astpp script in cron like below which is already in installation script. Also that is working fine on centos/debian. setup_cron()
|