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

Title: Cron Tasks problem
Post by: naujasdizainas on 2016-09-01, 05:56:43
Problem:
It's bug, or whats?
Used 7.0.0.b-2016083001.
Title: Re: Cron Tasks problem
Post by: MRatWork on 2016-09-01, 06:37:53
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
Title: Re: Cron Tasks problem
Post by: naujasdizainas on 2016-09-01, 06:45:54
Soliution? Manualy add command to crontab and all delete from admin panel and from /var/spool/cron/admin?
Title: Re: Cron Tasks problem
Post by: MRatWork on 2016-09-01, 06:50:02
Create manually inside /etc/cron.d (where 'new method' of backup using it).
Title: Re: Cron Tasks problem
Post by: naujasdizainas on 2016-09-01, 06:59:40
Ok thaks
Title: Re: Cron Tasks problem
Post by: LotsOfQ on 2016-09-08, 04:45:12
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?
Title: Re: Cron Tasks problem
Post by: MRatWork on 2016-09-08, 04:55:03
No need cron per-user if using /etc/cron.d. See already exists cron inside this dir to know about it.
Title: Re: Cron Tasks problem
Post by: LotsOfQ on 2016-09-08, 06:19:28
So should I delete all the crons that was created inside [Task >> Cron Tasks] and [var/spool/cron/{username file}]?
Title: Re: Cron Tasks problem
Post by: MRatWork on 2016-09-08, 06:20:31
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.
Title: Re: Cron Tasks problem
Post by: LotsOfQ on 2016-09-08, 07:17:18
So I've created a file in /etc/cron.d and added 3 cron jobs but done are working.
Title: Re: Cron Tasks problem
Post by: LotsOfQ on 2016-09-08, 07:21:48
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.
Title: Re: Cron Tasks problem
Post by: MRatWork on 2016-09-08, 08:25:52
Again, check other crons inside /etc/cron.d. You will see 'root' in command.