Page 1 of 1

EVE-NG-PRO Web Interface Startup

Posted: Thu Mar 22, 2018 9:46 am
by kwame
Since upgrading to eve-ng-pro I've had to restart apache everytime I shut down my server. Once it's up and running, no problem. But if I shut the box down and come back later and start it, I can't get to the web interface. I have to run "systemctl restart apache2" before the web interface will work.

Re: EVE-NG-PRO Web Interface Startup

Posted: Tue Mar 27, 2018 11:21 pm
by ecze
we observe such on bare metal.

Means apache start before real nics are totally ready

Best workaround is to add the command to restart apache in /etc/rc.local

Add a sleep ( 60 sec ) and then the command:

content of /etc/rc.local

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sleep 60
systemctl restart apache2

exit 0