]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
crontab.d/jobs: Add support to run job on boot.
authorSimon Ruderich <simon@ruderich.org>
Tue, 8 Oct 2013 13:58:34 +0000 (15:58 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 8 Oct 2013 15:08:06 +0000 (17:08 +0200)
crontab.d/jobs
crontab.d/jobs.reboot/.gitignore [new file with mode: 0644]

index dd6e5b7daa124a121d0416a4f9341c67ec68da54..1e6c4d2748b144d7b8d6717223b5bbbfc46ac196 100644 (file)
@@ -33,6 +33,9 @@ PATH=$HOME/bin:$HOME/.shell/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/u
 47 6 * * 7 RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.weekly
 52 6 1 * * RAND_SLEEP 3600; run-parts --report .crontab.d/jobs.monthly
 
+# Run on system startup.
+@reboot run-parts --report .crontab.d/jobs.reboot
+
 # Run every minute.
 * * * * * run-parts --report .crontab.d/jobs.minutely
 # Run every x hours.
diff --git a/crontab.d/jobs.reboot/.gitignore b/crontab.d/jobs.reboot/.gitignore
new file mode 100644 (file)
index 0000000..e69de29