From ca54aa19b81422160c76e8076edb7fc05d51f223 Mon Sep 17 00:00:00 2001 From: Luciano Righetti Date: Fri, 4 Mar 2022 17:01:30 +0100 Subject: [PATCH] chg: add decomission step for systemctl workers service --- docs/background-jobs-migration-guide.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/background-jobs-migration-guide.md b/docs/background-jobs-migration-guide.md index 988b8bdde..1cd608ced 100644 --- a/docs/background-jobs-migration-guide.md +++ b/docs/background-jobs-migration-guide.md @@ -19,11 +19,10 @@ Run on your MISP instance the following commands. 2. Install required PHP packages: ``` cd /var/www/MISP/app - sudo -u www-data composer require --with-all-dependencies supervisorphp/supervisor:^4.0 \ + sudo -u www-data php composer.phar require --with-all-dependencies supervisorphp/supervisor:^4.0 \ guzzlehttp/guzzle \ php-http/message \ lstrojny/fxmlrpc - ``` 3. Add the following settings at the bottom of the **Supervisord** conf file, usually located in: @@ -151,5 +150,11 @@ Run on your MISP instance the following commands. * /var/www/MISP/app/tmp/logs/misp-workers-errors.log * /var/www/MISP/app/tmp/logs/misp-workers.log +5. Once the new workers are functioning as expected, you can remove the previous workers service: + ```bash + $ sudo systemctl stop --now misp-workers + $ sudo systemctl disable --now misp-workers + ``` + ### Notes Scheduled tasks (TasksController) are not supported with the new backend, however this feature is going to be deprecated, it is recommended to use cron jobs instead. \ No newline at end of file