gislab-npo / gislab

GIS.lab - total reduction of deployment and maintenance costs for complete free and open source geospatial infrastructure
http://gislab-npo.github.io/gislab/
GNU General Public License v3.0
40 stars 14 forks source link

GIS.lab Desktop - add support to renew DHCP lease from server #432

Closed imincik closed 8 years ago

imincik commented 9 years ago

Currently, DHCP lease from server is not renewed. We need to copy lease from ramdisk to client filesystem a connect it correctly to dhcp client to enable DHCP renew request.

In current state, we have running useless "udhcpc -n -C -s /tmp/dhcp-script.sh -i eth0 -I 192.168.15.5 -x nisdomain gislab_vagrant" process on client. " /tmp/dhcp-script.sh" exists only in ramdisk.

mpastor commented 8 years ago

I set lease time to 2 minutes. client has successfully renewed ip address (without dhcp script and without lease file created in ramdisk) every 2 minutes. i think that udhcpc is running in RAM without any additional requirements. I have also successfully renewed ip address manualy (kill -USR1 [PID]).

imincik commented 8 years ago

Closing, it works !