From d09f89a327d3ab869a9f047c97dd619d08cfa8a3 Mon Sep 17 00:00:00 2001 From: Jason Hobbs Date: Sat, 3 Jul 2021 00:32:57 -0500 Subject: [PATCH] example cron job script (#186) * Create 25-add-cron-jobs my suggestion for adding cron jobs on startup * Update 25-add-cron-jobs --- .../examples/udm-files/on_boot.d/25-add-cron-jobs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 on-boot-script/examples/udm-files/on_boot.d/25-add-cron-jobs diff --git a/on-boot-script/examples/udm-files/on_boot.d/25-add-cron-jobs b/on-boot-script/examples/udm-files/on_boot.d/25-add-cron-jobs new file mode 100644 index 0000000..9da3368 --- /dev/null +++ b/on-boot-script/examples/udm-files/on_boot.d/25-add-cron-jobs @@ -0,0 +1,8 @@ +#!/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