From 6a4618d3d301ff8de4808a6300da2fe6abf2d76f Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 12 Apr 2022 11:33:33 +0200 Subject: [PATCH] Document how to provide an empty list; add examples of empty arguments (#308) --- mod_cron/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mod_cron/README.md b/mod_cron/README.md index 254017f..7d78745 100644 --- a/mod_cron/README.md +++ b/mod_cron/README.md @@ -179,6 +179,25 @@ modules: - "this is a binary" ``` +If you don't need to provide arguments at all, +you can remove `arguments`, or provide it with an empty list: +```yaml +modules: + mod_cron: + tasks: + - time: 10 + units: seconds + command: connected_users + - time: 15 + units: seconds + ctl: delete_expired_pubsub_items + - time: 20 + units: seconds + module: mod_pubsub + function: delete_expired_items + arguments: [] +``` + ejabberd Commands -----------------