Directory /var/run/network disappears on restart

crewze

New Member
Oct 17, 2009
24
1
1
On a Ubuntu 9 server, whenever I restart the VM, directory /var/run/network is deleted. To get networking to work I need to run the following commands manually:

mkdir /var/run/network
/etc/init.d/networking start
/etc/init.d/apache2

Very strange having directories getting deleted
icon13.gif


Any ideas?
 
I tried the fix in the thread which sets RAMRUN=no and RAMLOCK=no in the /etc/default/rcS file.

This is now the contents of the file:

#
# /etc/default/rcS
#
# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.

TMPTIME=0
SULOGIN=no
DELAYLOGIN=no
UTC=yes
VERBOSE=no
FSCKFIX=no
HWCLOCKACCESS=no
RAMRUN=no
RAMLOCK=no

After I restart the VM the /var/run/network still disappears and I have to manually create it and restart networking and apache2.
icon8.gif


Any other suggestions?
 
Hmmmm....Not sure what happened here. The second time I restarted the VM it came up fine.

Must have done something wrong the first time.

Thanks for your help.