From 35b179fd9c21177a1d5cb80c506768a8e8906119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Tue, 18 Jul 2017 07:36:04 +0200 Subject: [PATCH] Making the background workers start on boot. --- README.rst | 5 ----- bootstrap.sh | 21 ++++++++++++++++++--- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 2e6a8d5..d66b48a 100644 --- a/README.rst +++ b/README.rst @@ -9,13 +9,8 @@ TODO: * check the generation of the SSL certificate; * check the configuration of postfix; * configure redis connection; -* make the background workers start on boot; * generate the TLS certificate with Let's Encrypt. -Improvements: - -* provide more options through variables (for the gpg keys, etc.). - Installation of VirtualBox and Vagrant diff --git a/bootstrap.sh b/bootstrap.sh index 7d44325..f625564 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -268,7 +268,7 @@ chmod -R 750 $PATH_TO_MISP/app/Config echo -e "\n--- Generating a GPG encryption key... ---\n" -apt-get install rng-tools haveged +apt-get install -y rng-tools haveged mkdir $PATH_TO_MISP/.gnupg chmod 700 $PATH_TO_MISP/.gnupg cat >gen-key-script < $PATH_TO_MISP/app/webroot/gpg.asc -# To make the background workers start on boot -# !!! TODO +echo -e "\n--- Making the background workers start on boot... ---\n" +chmod +x $PATH_TO_MISP/app/Console/worker/start.sh +cat > /etc/systemd/system/workers.service <