Browse Source

cronie: Install crontab that cruns daily, weekly, hourly jobs

The crontab installed by cronie doesn't actually run the daily
files. Fix that so that our logrotate application is being called.

Related: SYS#1189
neels/inmarsat
Holger Hans Peter Freyther 7 years ago
parent
commit
e0675ada31
  1. 4
      recipes-fixes/cronie/cronie_sysmocom.inc
  2. 14
      recipes-fixes/cronie/files/crontab
  3. 1
      yocto-shared/cronie_%.bbappend

4
recipes-fixes/cronie/cronie_sysmocom.inc

@ -0,0 +1,4 @@
THISDIR := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESPATH =. "${@base_set_filespath(["${THISDIR}/files"], d)}:"
PRINC="1"

14
recipes-fixes/cronie/files/crontab

@ -0,0 +1,14 @@
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
1 * * * * root cd / && run-parts /etc/cron.hourly
30 7 * * * root cd / && run-parts /etc/cron.daily
42 7 * * 7 root cd / && run-parts /etc/cron.weekly
55 7 1 * * root cd / && run-parts /etc/cron.monthly

1
yocto-shared/cronie_%.bbappend

@ -0,0 +1 @@
require recipes-fixes/cronie/${PN}_sysmocom.inc
Loading…
Cancel
Save