mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 10:10:28 +01:00
2007-10-24 Dan Williams <dcbw@redhat.com>
* src/backends/NetworkManagerRedHat.c - (nm_system_update_dns): be a lot smarter about telling nscd to restart git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3016 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
10ee8a3f7b
commit
14f90ea3e1
2 changed files with 9 additions and 9 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-10-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/backends/NetworkManagerRedHat.c
|
||||
- (nm_system_update_dns): be a lot smarter about telling nscd to restart
|
||||
|
||||
2007-10-23 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* libnm-util/nm-setting.c
|
||||
|
|
|
|||
|
|
@ -228,15 +228,10 @@ 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)
|
||||
nm_spawn_process ("/etc/init.d/nscd restart");
|
||||
|
||||
nm_info ("Clearing nscd hosts cache.");
|
||||
nm_spawn_process ("/usr/sbin/nscd -i hosts");
|
||||
#else
|
||||
nm_spawn_process ("/usr/bin/killall -q nscd");
|
||||
#endif
|
||||
if (g_file_test ("/usr/sbin/nscd", G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE | G_FILE_TEST_IS_REGULAR)) {
|
||||
nm_spawn_process ("/etc/init.d/nscd condrestart");
|
||||
nm_spawn_process ("/usr/sbin/nscd -i hosts");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue