Commit a5e57716 authored by Dan Williams's avatar Dan Williams
Browse files

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
parent 12bc1bb9
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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment