<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6644</bug_id>
          
          <creation_ts>2014-08-21 21:57:37 +0000</creation_ts>
          <short_desc>cronie does not run cron.hourly (and propably more)</short_desc>
          <delta_ts>2014-12-15 18:11:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.6.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Volker">lists.volker</reporter>
          <assigned_to name="Alejandro Hernandez">alejandro.hernandez</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45195</commentid>
    <comment_count>0</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-08-21 21:57:37 +0000</bug_when>
    <thetext>Cronie (cron clone), found in meta/recipes-extended/cronie/ does not seem to run scripts in /etc/cron.daily

We install cron configuration to /etc/cron.d/ and they get executed.
We install scripts into /etc/cron.hourly/ and it is not executed.

I am not familiar with the big differences betweeen cron and cronie. With the regular cron the basic distributions (like Debian, Fedora, Ubuntu) configure in /etc/cronttab that the files under /etc/cron.{daily,hourly,weekly} get executed.

I also see that logrotate and prelink install files to /etc/cron.daily that might be affected by this, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45196</commentid>
    <comment_count>1</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-08-21 22:08:09 +0000</bug_when>
    <thetext>Trying to find a fix, the default Deboam style
   run-parts --report /etc/cron.hourly
command does not work. The run-parts command from busy-box does not accept the &apos;--report&apos; argument. The following worked in /etc/cronttab:

     17 *    * * *   root   cd / &amp;&amp; run-parts /etc/cron.hourly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46325</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2014-10-14 16:57:17 +0000</bug_when>
    <thetext>Could you please give more information about this issue?, it seems to me that it this is working:

/etc/crontab:

   1 *	* * *	root    cd / &amp;&amp; run-parts /etc/cron.hourly

/etc/cron.hourly/foo

   date &gt;&gt; /tmp/bar

/tmp/bar:
   Tue Oct 14 13:01:01 UTC 2014
   Tue Oct 14 14:01:01 UTC 2014
   Tue Oct 14 15:01:01 UTC 2014

Can you also make sure the scripts in your cron.hourly / cron.daily / cron.weekly / cron.monthly directories do not have a &quot;.&quot; in their name, given that run-parts without options will ignore these.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47041</commentid>
    <comment_count>3</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-11-14 21:55:26 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-extended/cronie/cronie/crontab still does not list any execution of the sub-directories.

I don&apos;t say that cronie is not working. It just does not execute any of the /etc/cron.hourly etc. out of the box without the need that user modify the /etc/crontab

If you install crontab and have /etc/cron.hourly etc, you would assume that they are executed out of the box without manual modifications.

I do not know where the following line comes from:
   1 *	* * *	root    cd / &amp;&amp; run-parts /etc/cron.hourly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47054</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2014-11-17 16:48:55 +0000</bug_when>
    <thetext>Alejandro - Volker has answered your question.  Does this need to be in NEEDINFO?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47255</commentid>
    <comment_count>5</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2014-12-01 18:17:30 +0000</bug_when>
    <thetext>I added a default configuration file, it is for instructive purposes, so it is still not enabled by default, the user has to uncoment the lines as desired.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a7446ed99a0c21ee81c22a69dd3fbbb8e396291</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47256</commentid>
    <comment_count>6</comment_count>
    <who name="Alejandro Hernandez">alejandro.hernandez</who>
    <bug_when>2014-12-01 18:19:14 +0000</bug_when>
    <thetext>Solved by previous comment ^^</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>