Jason Hobbs 9ed494afd7 example cron job script (#186)
* Create 25-add-cron-jobs

my suggestion for adding cron jobs on startup

* Update 25-add-cron-jobs

Former-commit-id: d09f89a327d3ab869a9f047c97dd619d08cfa8a3
2021-07-02 22:32:57 -07:00

9 lines
206 B
Bash

#!/bin/sh
# store crontab files in /mnt/data/cronjobs/ (you will need to create this foler)
# this script will re-add them on startup
cp /mnt/data/cronjobs/* /etc/cron.d/
/etc/init.d/crond restart
exit 0