Cron problems

Discussion in 'General' started by sjau, Jun 17, 2013.

Thread Status:
Not open for further replies.
  1. sjau

    sjau Local Meanie Moderator

    Hi there

    I setup a few cronjob, e.g.:

    one is like that:

    Code:
    /var/www/clients/client1/web9/web/urteile/cron.sh
    
    and the resulting file in /etc/cron.d looks like this:
    Code:
    cat ispc_chrooted_web9                                                                                                                                                                                                                              
    MAILTO=''                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                   
    #SHELL='/usr/sbin/jk_chrootsh'                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                   
    10      12,13   *       *       *       web9    /var/www/clients/client1/web9/web/urteile/cron.sh       #regenmacher.ch    
    

    However a new one I created looks like this:
    Code:
    /var/www/clients/client1/web41/web/sr_orig/cron.sh  2>&1 | mail -s "SR Cron" '[email protected]'
    
    but the entry in cron.d looks like that:
    Code:
    cat ispc_chrooted_web41 
    MAILTO=''                                                                                                                                                                                                                                                                      
    SHELL='/usr/sbin/jk_chrootsh'                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                   
    30      7       *       *       *       web41   /web/sr_orig/cron.sh  2>&1 | mail -s "SR Cron" '[email protected]' #sub.domain.com
    
    For some reason the web41 is chrooted but I don't recall having set chrooting up for it.
     
  2. sjau

    sjau Local Meanie Moderator

    fixed it :)
     
Thread Status:
Not open for further replies.

Share This Page