Skip to content

Commit

Permalink
Update index.rst
Browse files Browse the repository at this point in the history
Update to create a systemd service for the workers.

Signed-off-by: Bastian Derigs <[email protected]>
  • Loading branch information
derigs authored Jan 15, 2025
1 parent 306a643 commit 828f55d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin_manual/webhook_listeners/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -111,9 +111,9 @@ The complete logs of the workers can be checked with (replace 1 with the worker

.. code-block::
journalctl -xeu [email protected] -f
sudo journalctl -xeu [email protected] -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
------------------------
Expand Down

0 comments on commit 828f55d

Please sign in to comment.