]> Frank Brehm's Git Trees - config/berta/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Fri, 18 May 2018 09:52:16 +0000 (11:52 +0200)
committerFrank Brehm <frank@brehm-online.com>
Fri, 18 May 2018 09:52:16 +0000 (11:52 +0200)
.etckeeper
cron.d/0hourly [new file with mode: 0644]
cron.deny
crontab
init.d/cronie

index 98a799af1c12e7801b6dc0c57569c23c516ebf4a..4a3d4db19315690db53aec26468c4681361b903d 100755 (executable)
@@ -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 (file)
index 0000000..1ab8c17
--- /dev/null
@@ -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
index 42cdd5f8c9a30a23a07c8f1172dbb131e8642216..f703d5846e41082520fa137c80014bd0abc27d8e 100644 (file)
--- 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 14a6b9b1922f52806c63b93aa83d487f46f178e4..275f06c603d4feb824b5d0b0179f965cbe6484f9 100644 (file)
--- 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
+
index 781ff67c47f8f14f1b25d0603cd230ceda2cab7d..793e6213bfae33e528e8564d4fba2c1542ce5807 100755 (executable)
@@ -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}"