From 9eebc61f9a5739af7a60d8fa690eda3e3754518f Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 11 Aug 2026 21:22:44 +0500 Subject: [PATCH] Remove crond from busybox launching. --- CHANGELOG.md | 7 +++++++ README.md | 15 +++++++++++---- etc/cont-init.d/20-news-crontab.sh | 3 --- etc/crontabs/news | 5 ----- etc/services.d/cron/run | 3 --- 5 files changed, 18 insertions(+), 15 deletions(-) delete mode 100755 etc/cont-init.d/20-news-crontab.sh delete mode 100644 etc/crontabs/news delete mode 100755 etc/services.d/cron/run diff --git a/CHANGELOG.md b/CHANGELOG.md index 95ae1c0..239984a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) but do not follows semantic versioning as it is useless in this type of project. +## [2.7.4-8] - 2026-08-11 + +### Removed + +* Removed crond from busybox launch as it is completely useless. Use external cron instead. + ## [2.7.4-7] - 2026-08-10 ### Added @@ -76,6 +82,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) Initial container release with inn 2.7.4 built with perl/python/sqlite support. +[2.7.4-8]: https://code.pztrn.name/containers/inn2/compare/2.7.4-7...2.7.4-8 [2.7.4-7]: https://code.pztrn.name/containers/inn2/compare/2.7.4-6...2.7.4-7 [2.7.4-6]: https://code.pztrn.name/containers/inn2/compare/2.7.4-5...2.7.4-6 [2.7.4-5]: https://code.pztrn.name/containers/inn2/compare/2.7.4-4...2.7.4-5 diff --git a/README.md b/README.md index 2704fd4..2cc677d 100644 --- a/README.md +++ b/README.md @@ -85,12 +85,19 @@ Note that this code is built to support dual-stack (IPv4+IPv6). You should eithe ## Cronjobs -This Docker image come with a recommended in documentation set of cronjobs. To customize it copy `etc/crontabs/news` file, make neccessary changes and mount it to container in `/etc/crontabs/news`. +INN requires some cronjobs to be executed due to it's architecture. Previously this image was launching crond from busybox, but it is a pain to configure it to work properly, so you should use some external cron service. -If you want to use cron outside of your container: +Example from oldproto.ru: -```shell -0 3 * * * docker compose run inn news.daily expireover lowmark delayrm +```text +# min hour day month weekday command +0 0 * * * docker compose exec -u news inn news.daily expireover lowmark delayrm norotate +15 * * * * docker compose exec -u news inn rnews -U +0 4 * * * docker compose exec -u news inn ctlinnd -t 120 -s reload incoming.conf 'flush cache' +*/10 * * * * docker compose exec -u news inn nntpsend +15 5 * * * docker compose exec -u news inn ctlinnd flush inpaths! +30 5 * * * docker compose exec -u news inn sendinpaths -c +30 4 * * * docker compose exec -u news inn actsyncd /inn2/etc/actsync.cfg ``` ## Sending emails diff --git a/etc/cont-init.d/20-news-crontab.sh b/etc/cont-init.d/20-news-crontab.sh deleted file mode 100755 index 95c7786..0000000 --- a/etc/cont-init.d/20-news-crontab.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -chown news:news /etc/crontabs/news diff --git a/etc/crontabs/news b/etc/crontabs/news deleted file mode 100644 index 6bb8e38..0000000 --- a/etc/crontabs/news +++ /dev/null @@ -1,5 +0,0 @@ -# min hour day month weekday command -0 5 * * * cd /inn2; /inn2/bin/news.daily expireover lowmark delayrm norotate -15 * * * * cd /inn2; /inn2/bin/rnews -U -0 4 * * * cd /inn2; /inn2/bin/ctlinnd -t 120 -s reload incoming.conf 'flush cache' -*/10 * * * * cd /inn2; /inn2/bin/nntpsend diff --git a/etc/services.d/cron/run b/etc/services.d/cron/run deleted file mode 100755 index e53c097..0000000 --- a/etc/services.d/cron/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/sbin/crond -f