GR360RY / dhcpawn

Other
2 stars 1 forks source link

add system config view #4

Open d9w opened 9 years ago

d9w commented 9 years ago

to show hostname, status of dhcp and ldap services

d9w commented 9 years ago

started this with 7dcfd7e at /api/status, currently just checking isc-dhcp-server and slapd services.

In testing configuration changes, it looks like the subnet containing the DHCP server interface will not reload its configuration from LDAP changes. This means the isc-dhcp-server service needs to be restarted, and errors could be made in the DHCP configuration (such as moving the subnet out of range of the server IP), which result in a failed server. dhcpd has a test mode, but I haven't found a way to test run the LDAP configuration to avoid bringing down the service on misconfigurations.