blob: 8e1c70e86464a5c782f33527e7c69d1f6be139ae [file] [log] [blame]
#!/bin/bash
if jps -m | grep -q "TexeraWebApplication"; then
echo "TexeraWebApplication is running."
# Check if TexeraRunWorker is missing
if ! jps -m | grep -q "TexeraRunWorker"; then
echo "TexeraRunWorker is missing. Restarting..."
# Restart TexeraRunWorker
cd "$(dirname "$0")"
cd ../
./scripts/worker.sh >/dev/null
echo "TexeraRunWorker restarted."
else
echo "TexeraRunWorker is already running."
fi
else
echo "TexeraWebApplication is not running."
fi