MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: naujasdizainas on 2016-09-01, 05:56:43
-
Problem:
- In Cron Tasks have 5 active work. But in /var/spool/cron/admin writes only 2 work
- If delete Cron task work in admin, in /var/spool/cron/admin still exist work
- Cron time work not corect - if write time ex. every 15 min, cron work every 1 min.
It's bug, or whats?
Used 7.0.0.b-2016083001.
-
Problem:
- In Cron Tasks have 5 active work. But in /var/spool/cron/admin writes only 2 work
- If delete Cron task work in admin, in /var/spool/cron/admin still exist work
- Cron time work not corect - if write time ex. every 15 min, cron work every 1 min.
It's bug, or whats?
Used 7.0.0.b-2016083001.
1. Complex cron task still trouble
2. file inside /var/spool/cron/ based-on user. It's possible admin have more than 1 cron task command
-
Soliution? Manualy add command to crontab and all delete from admin panel and from /var/spool/cron/admin?
-
Create manually inside /etc/cron.d (where 'new method' of backup using it).
-
Ok thaks
-
Create manually inside /etc/cron.d (where 'new method' of backup using it).
So for now:
1. Delete all the crons that was created inside [Task >> Cron Tasks] and [var/spool/cron/{username file}]?
2. And create them manually inside /etc/cron.d?
3. And if so, is this the right way do it to it? Create file /etc/cron.d/{username file} for each user that uses cron?
-
No need cron per-user if using /etc/cron.d. See already exists cron inside this dir to know about it.
-
So should I delete all the crons that was created inside [Task >> Cron Tasks] and [var/spool/cron/{username file}]?
-
So should I delete all the crons that was created inside [Task >> Cron Tasks] and [var/spool/cron/{username file}]?
Yes, if you don't want conflict for the same tasks.
-
So I've created a file in /etc/cron.d and added 3 cron jobs but done are working.
-
MAILTO=""
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49 * * * * php -q /home/username/mydomain.com/cronfile.php >/dev/null
58 * * * * php -q /home/username/mydomain.com/cronfile2.php >/dev/null
54 * * * * php -q /home/username/mydomain.com/cronfile3.php >/dev/null
Added these cronjobs to the new file inside /etc/cron.d/
Is that right? Because it's not working.
-
Again, check other crons inside /etc/cron.d. You will see 'root' in command.