2019-11-25 22:58:18 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NC='\033[0m' # No Color
|
|
|
|
Light_Green='\033[1;32m'
|
|
|
|
echo (){
|
2020-02-12 15:37:23 +01:00
|
|
|
command echo -e "$1"
|
2019-11-25 22:58:18 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
STARTMSG="${Light_Green}[ENTRYPOINT_WORKERS]${NC}"
|
|
|
|
|
|
|
|
# Wait until entrypoint apache is ready
|
|
|
|
while (true)
|
|
|
|
do
|
|
|
|
sleep 2
|
|
|
|
[ -f /entrypoint_apache.install ] && continue
|
|
|
|
break
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
# start Workers for MISP
|
|
|
|
echo "$STARTMSG Start Workers..."
|
|
|
|
sudo -u www-data /var/www/MISP/app/Console/worker/start.sh
|
|
|
|
echo "$STARTMSG Start Workers...finished"
|
|
|
|
|
|
|
|
while true
|
|
|
|
do
|
|
|
|
sleep 3600
|
|
|
|
echo "$STARTMSG Start Workers..."
|
|
|
|
sudo -u www-data /var/www/MISP/app/Console/worker/start.sh
|
|
|
|
echo "$STARTMSG Start Workers...finished"
|
|
|
|
done
|