2005-02-25 Dan Williams <dcbw@redhat.com>

* src/backends/NetworkManagerRedHat.c
		- For non-caching-nameserver/non-named case, ensure that nscd is running
			and that we actually tell nscd to reload the hosts cache when it changes


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@472 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2005-02-25 20:51:34 +00:00
parent 12bc1bb923
commit a5e5771628
2 changed files with 11 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2005-02-25 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerRedHat.c
- For non-caching-nameserver/non-named case, ensure that nscd is running
and that we actually tell nscd to reload the hosts cache when it changes
2005-02-25 Dan Williams <dcbw@redhat.com>
* info-daemon/NetworkManagerInfoDbus.c

View file

@ -284,11 +284,11 @@ void nm_system_kill_all_dhcp_daemons (void)
void nm_system_update_dns (void)
{
#ifdef NM_NO_NAMED
if(nm_spawn_process ("/etc/init.d/nscd status") == 0)
{
syslog (LOG_ERR, "Clearing nscd hosts cache.");
nm_spawn_process ("/usr/sbin/nscd -i hosts");
}
if (nm_spawn_process ("/etc/init.d/nscd status") != 0)
nm_spawn_process ("/etc/init.d/nscd restart");
syslog (LOG_ERR, "Clearing nscd hosts cache.");
nm_spawn_process ("/usr/sbin/nscd -i hosts");
#else
nm_spawn_process ("/usr/bin/killall -q nscd");
#endif