Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th February 2012, 03:26
99miles 99miles is offline
Junior Member
 
Join Date: Feb 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cron jobs not getting run

When I create new cron jobs (and set them as active), they are put in /etc/cron.d/ispc_chrooted_web1


Code:
MAILTO=''

SHELL='/usr/sbin/jk_chrootsh'

*/2     *       *       *       *       web1    /etc/cron.d/job1
*       *       *       *       *       web1    /etc/cron.d/job2
1) Where in ISPConfig do I specify what this MAILTO will be set to?

2) These jobs aren't getting run. However if I manually add them to the root users 'crontab -e' file they get run fine. Why wouldn't they be getting run here?

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 29th February 2012, 11:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,799
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

1) The amilto cant be set in ispconfig.
2) You run a chrooted cronjob and the script that you try to execute is not in the chroot.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th February 2012, 22:38
99miles 99miles is offline
Junior Member
 
Join Date: Feb 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I see, thanks. So how do I give that user the access it needs?

Do I just need to give the web1 user access to execute those files?
Reply With Quote
  #4  
Old 1st March 2012, 00:16
99miles 99miles is offline
Junior Member
 
Join Date: Feb 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

It looks like the cron isn't even running at all, so I have a feeling it's not a permissions issue yet.
I modified /etc/cron.d/ispc_chrooted_web1 to the following and it still doesn't run:

Code:
MAILTO=''
#SHELL='/usr/sbin/jk_chrootsh'

*       *       *       *       *       root    /etc/cron.d/send_it  > dev/null 2>> /var/log/ispconfig/cron.log
What is it that is supposed to run this ispc_chrooted_web1 file? How else can I narrow this down?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron jobs not running IrDA Installation/Configuration 8 18th November 2011 15:17
Problem getting cron job to run and in need of help :) MrCompTech General 7 27th July 2010 10:50
Companion Script #2 for The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]" MrCompTech Tips/Tricks/Mods 0 10th July 2010 06:11
ISPConfig cron jobs mphayesuk General 3 30th August 2009 12:15
how to run jar file using cron? shoaibahmedbaig HOWTO-Related Questions 1 9th February 2008 19:10


All times are GMT +2. The time now is 13:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.