From 824470434d05d74d71a12bd6cfe26ae970a28dbd Mon Sep 17 00:00:00 2001 From: Bastian Derigs <155444921+derigs@users.noreply.github.com> Date: Wed, 15 Jan 2025 12:39:33 +0100 Subject: [PATCH] Update index.rst Update to create a systemd service for the workers. Signed-off-by: Bastian Derigs <155444921+derigs@users.noreply.github.com> --- admin_manual/webhook_listeners/index.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin_manual/webhook_listeners/index.rst b/admin_manual/webhook_listeners/index.rst index fadc35724..7a5728596 100644 --- a/admin_manual/webhook_listeners/index.rst +++ b/admin_manual/webhook_listeners/index.rst @@ -53,7 +53,7 @@ For Nextcloud-AIO you should use this command on the host server. .. code-block:: - set -e; while true; do docker exec -u www-data -it nextcloud-aio-nextcloud php occ background-job:worker -v -t 60 "OCA\WebhookListeners\BackgroundJobs\WebhookCall"; done + set -e; while true; do sudo docker exec -u www-data -it nextcloud-aio-nextcloud php occ background-job:worker -v -t 60 "OCA\WebhookListeners\BackgroundJobs\WebhookCall"; done You may want to adjust the number of workers and the timeout (in seconds) to your needs. The logs of the worker can be checked by attaching to the screen or tmux session. @@ -111,9 +111,9 @@ The complete logs of the workers can be checked with (replace 1 with the worker .. code-block:: - journalctl -xeu nextcloud-webhook-worker@1.service -f + sudo journalctl -xeu nextcloud-webhook-worker@1.service -f -It is recommended to restart this worker atleast once a day to make sure code changes are effective and avoid memory leaks, in this example the service restarts every 60 seconds. +It is recommended to restart this worker at least once a day to make sure code changes are effective and avoid memory leaks, in this example the service restarts every 60 seconds. Nextcloud Webhook Events ------------------------