EVE-NG-PRO Web Interface Startup

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
kwame
Posts: 13
Joined: Sat May 06, 2017 9:54 pm

EVE-NG-PRO Web Interface Startup

Post by kwame » Thu Mar 22, 2018 9:46 am

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.

ecze
Posts: 534
Joined: Wed Mar 15, 2017 1:54 pm

Re: EVE-NG-PRO Web Interface Startup

Post by ecze » Tue Mar 27, 2018 11:21 pm

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

Post Reply