#!/bin/bash

echo ""
echo "===="
echo "Staring NodeJS-based Next server with 'nohup' in the background"
echo "=> Run ./STOP-PROD.sh to (currently) list the process that need"
echo "   to be manually stopped with 'kill'"
echo "----"
echo ""

#echo "Logging output to nohup.out"
#echo ""

echo "================================================================================" >> nohup.out
echo "START-PROD.sh run: $(date) " >> nohup.out
echo "" >> nohup.out

nohup ./START-PROD.sh & 

echo ""

# Small sleep, just to let the nohup output have time to be dislayed
sleep 1


echo "===="
echo ""
