Skip to content

Commit 828f55d

Browse files
authored
Update index.rst
Update to create a systemd service for the workers. Signed-off-by: Bastian Derigs <[email protected]>
1 parent 306a643 commit 828f55d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

admin_manual/webhook_listeners/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ For Nextcloud-AIO you should use this command on the host server.
5353

5454
.. code-block::
5555
56-
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
56+
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
5757
5858
You may want to adjust the number of workers and the timeout (in seconds) to your needs.
5959
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
111111

112112
.. code-block::
113113
114-
journalctl -xeu [email protected] -f
114+
sudo journalctl -xeu [email protected] -f
115115
116-
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.
116+
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.
117117

118118
Nextcloud Webhook Events
119119
------------------------

0 commit comments

Comments
 (0)