EVE-NG-PRO Web Interface Startup
Moderator: mike
-
- Posts: 13
- Joined: Sat May 06, 2017 9:54 pm
EVE-NG-PRO Web Interface Startup
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.
-
- Posts: 534
- Joined: Wed Mar 15, 2017 1:54 pm
Re: EVE-NG-PRO Web Interface Startup
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
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