Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-27, 22:33:13

Author Topic: Cron Tasks problem  (Read 4462 times)

0 Members and 1 Guest are viewing this topic.

Offline naujasdizainas

  • Junior Member
  • *
  • Posts: 44
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • http://www.naujasdizainas.com
Cron Tasks problem
« 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron Tasks problem
« Reply #1 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
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline naujasdizainas

  • Junior Member
  • *
  • Posts: 44
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • http://www.naujasdizainas.com
Re: Cron Tasks problem
« Reply #2 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?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron Tasks problem
« Reply #3 on: 2016-09-01, 06:50:02 »
Create manually inside /etc/cron.d (where 'new method' of backup using it).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline naujasdizainas

  • Junior Member
  • *
  • Posts: 44
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • http://www.naujasdizainas.com
Re: Cron Tasks problem
« Reply #4 on: 2016-09-01, 06:59:40 »
Ok thaks

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Cron Tasks problem
« Reply #5 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?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron Tasks problem
« Reply #6 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Cron Tasks problem
« Reply #7 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}]?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron Tasks problem
« Reply #8 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Cron Tasks problem
« Reply #9 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.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Cron Tasks problem
« Reply #10 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron Tasks problem
« Reply #11 on: 2016-09-08, 08:25:52 »
Again, check other crons inside /etc/cron.d. You will see 'root' in command.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.084 seconds with 18 queries.

web stats analysis