From 227edff0cc7147cf8bdcc287d2c37e689c56212b Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sat, 26 Aug 2023 12:07:59 -0500 Subject: [PATCH 1/3] standard cron Signed-off-by: Eric Nemchik --- content/issues/2023-08-26-cron.md | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 content/issues/2023-08-26-cron.md diff --git a/content/issues/2023-08-26-cron.md b/content/issues/2023-08-26-cron.md new file mode 100644 index 00000000..d93a7f72 --- /dev/null +++ b/content/issues/2023-08-26-cron.md @@ -0,0 +1,52 @@ +--- +title: "Notification: Significant changes to cron incoming" +date: "2023-08-26 23:00:00Z" +informational: true +affected: + - "Notifications" + - "diskover" + - "duckdns" + - "feed2toot" + - "freshrss" + - "grav" + - "lychee" + - "nextcloud" + - "rsnapshot" + - "snipe-it" + - "swag" + - "transmission" + - "webgrabplus" +section: issue +--- + +We've decided to make some changes to how cron is shipped in our images. + +## Current state of cron + +We have not had a consistent standard. Many of our images setup cron the same way. When an application requires cron, we setup crontabs for `abc` or `root` in `/config/crontabs/`. This has allowed users to customize crontabs. + +This has required that if we make changes to the image that require changes to crontabs we have had to carefully plan how to make adjustments to existing user files without causing issues with any customizations. It could also mean we are unable to automatically make required changes if user customizations make an automated adjustments impossible. In these cases, users have been required to update crontabs on their own. + +As a side note, we also offer our [universal cron mod](https://github.com/linuxserver/docker-mods/tree/universal-cron) that can be applied to add the ability to use cron for both `abc` and `root` in any container. + +## Incoming changes + +When an application requires cron, we will also no longer setup crontabs for `abc` or `root` in `/config/crontabs/`, unless user customizations to the crontab are required. + +Instead, we are internalizing the crontab files. This should make it easier for us to update crontabs when changes to the image require updates to crontabs. It also means users won't have to keep up with changes to crontab requirements that may break their applications. + +**IMPORTANT:** We are NOT removing existing crontabs from `/config/crontabs/`, they will simply be ignored unless otherwise noted. + +We will continue to offer our [universal cron mod](https://github.com/linuxserver/docker-mods/tree/universal-cron) with a new purpose of making crontabs for `abc` and `root` customizable by setting them up in up `/config/crontabs/` and configuring the cron service to recognize them, essentially restoring the original behavior. This effectively makes the cron mod the only way to customize crontabs. + +As a side note, we are also adjusting all existing crontabs we ship to run as `abc` instead of `root`. This improves security and consistency in our images. + +### Exceptions + +Diskover requires setting your own crontab schedule. The container will now run cron using `/config/crontabs/abc` instead of `/config/crontabs/root`. The `/config/crontabs/root` file is NOT being automatically removed, but will be ignored. + +Rsnapshot requires setting your own crontab schedule, and in some cases requires backups to run as root. The container will continue to run cron using `/config/crontabs/root`. + +## Timing + +You can expect to see these changes merge around October 1st, 2023. An additional post will be made with all of the above information and any updates if anything changes between now and then. From 5492f4bb2fa74ea300362bed7551009a002e3883 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Thu, 21 Sep 2023 17:26:51 -0500 Subject: [PATCH 2/3] New target date for cron Signed-off-by: Eric Nemchik --- content/issues/{2023-08-26-cron.md => 2023-09-21-cron.md} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename content/issues/{2023-08-26-cron.md => 2023-09-21-cron.md} (85%) diff --git a/content/issues/2023-08-26-cron.md b/content/issues/2023-09-21-cron.md similarity index 85% rename from content/issues/2023-08-26-cron.md rename to content/issues/2023-09-21-cron.md index d93a7f72..5e60d2d4 100644 --- a/content/issues/2023-08-26-cron.md +++ b/content/issues/2023-09-21-cron.md @@ -1,6 +1,6 @@ --- title: "Notification: Significant changes to cron incoming" -date: "2023-08-26 23:00:00Z" +date: "2023-09-21 23:00:00Z" informational: true affected: - "Notifications" @@ -23,7 +23,7 @@ We've decided to make some changes to how cron is shipped in our images. ## Current state of cron -We have not had a consistent standard. Many of our images setup cron the same way. When an application requires cron, we setup crontabs for `abc` or `root` in `/config/crontabs/`. This has allowed users to customize crontabs. +We have not had a consistent standard. Many of our images do however setup cron the same way. When an application requires cron, we setup crontabs for `abc` or `root` in `/config/crontabs/`. This has allowed users to customize crontabs. This has required that if we make changes to the image that require changes to crontabs we have had to carefully plan how to make adjustments to existing user files without causing issues with any customizations. It could also mean we are unable to automatically make required changes if user customizations make an automated adjustments impossible. In these cases, users have been required to update crontabs on their own. @@ -49,4 +49,4 @@ Rsnapshot requires setting your own crontab schedule, and in some cases requires ## Timing -You can expect to see these changes merge around October 1st, 2023. An additional post will be made with all of the above information and any updates if anything changes between now and then. +You can expect to see these changes merge around November 1st, 2023. An additional post will be made with all of the above information and any updates if anything changes between now and then. From c3aeb8763e15de025288a852e31244681f600eb0 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 1 Oct 2023 10:32:41 -0500 Subject: [PATCH 3/3] Update and rename 2023-09-21-cron.md to 2023-10-01-cron.md --- content/issues/{2023-09-21-cron.md => 2023-10-01-cron.md} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename content/issues/{2023-09-21-cron.md => 2023-10-01-cron.md} (99%) diff --git a/content/issues/2023-09-21-cron.md b/content/issues/2023-10-01-cron.md similarity index 99% rename from content/issues/2023-09-21-cron.md rename to content/issues/2023-10-01-cron.md index 5e60d2d4..02cfc80b 100644 --- a/content/issues/2023-09-21-cron.md +++ b/content/issues/2023-10-01-cron.md @@ -1,6 +1,6 @@ --- title: "Notification: Significant changes to cron incoming" -date: "2023-09-21 23:00:00Z" +date: "2023-10-01 23:00:00Z" informational: true affected: - "Notifications"