From: Frank Brehm Date: Fri, 18 May 2018 09:52:16 +0000 (+0200) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=5593f52c2b2fabfe085d78191424ff8395f1403e;p=config%2Fberta%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/.etckeeper b/.etckeeper index 98a799a..4a3d4db 100755 --- a/.etckeeper +++ b/.etckeeper @@ -203,6 +203,7 @@ maybe chmod 0644 'config-archive/etc/systemd/resolved.conf' maybe chmod 0644 'config-archive/etc/systemd/resolved.conf.dist' maybe chmod 0755 'cron.d' maybe chmod 0644 'cron.d/.keep_sys-process_cronie-0' +maybe chmod 0644 'cron.d/0hourly' maybe chmod 0755 'cron.daily' maybe chmod 0644 'cron.daily/.keep_sys-process_cronbase-0' maybe chmod 0755 'cron.daily/etckeeper' diff --git a/cron.d/0hourly b/cron.d/0hourly new file mode 100644 index 0000000..1ab8c17 --- /dev/null +++ b/cron.d/0hourly @@ -0,0 +1,5 @@ +# Run the hourly jobs +SHELL=/bin/bash +PATH=/sbin:/bin:/usr/sbin:/usr/bin +MAILTO=root +01 * * * * root run-parts /etc/cron.hourly diff --git a/cron.deny b/cron.deny index 42cdd5f..f703d58 100644 --- a/cron.deny +++ b/cron.deny @@ -1,4 +1,3 @@ -# $Id$ # If for any reason you have users in the 'cron' group who should not # be allowed to run crontab, add them to this file (one username per # line) diff --git a/crontab b/crontab index 14a6b9b..275f06c 100644 --- a/crontab +++ b/crontab @@ -1,15 +1,17 @@ -# for cronie -# $Id$ - # Global variables SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ -# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly -59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly -9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily -19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly -29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly -*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons +# For details see man 4 crontabs + +# Example of job definition: +# .---------------- minute (0 - 59) +# | .------------- hour (0 - 23) +# | | .---------- day of month (1 - 31) +# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... +# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat +# | | | | | +# * * * * * user-name command to be executed + diff --git a/init.d/cronie b/init.d/cronie index 781ff67..793e621 100755 --- a/init.d/cronie +++ b/init.d/cronie @@ -1,7 +1,6 @@ #!/sbin/openrc-run # Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id$ command="/usr/sbin/crond" command_args="${CRONDARGS}"