Set nice value and detach from cron
[backups/.git] / scripts / cron-burn.sh
diff --git a/scripts/cron-burn.sh b/scripts/cron-burn.sh
new file mode 100755 (executable)
index 0000000..4967935
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+export PATH=$(dirname $0):/bin:/usr/bin:/sbin
+
+. config.sh
+
+# burn-imgs.sh needs to be detached so that it can stop and start cron without
+# dying itself.
+
+setsid burn-imgs.sh