This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user