2006-05-22 Robert Love <rml@novell.com>

* src/backends/NetworkManagerSuSE.c: Reload, do not restart, ypbind and
	  autofs on interface up if NIS is configured.  On interface down, do
	  nothing.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1756 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Robert Love
2006-05-22 15:24:04 +00:00
committed by Robert Love
parent acfed9816e
commit 628bc77f10
2 changed files with 10 additions and 2 deletions

View File

@@ -1142,12 +1142,12 @@ void nm_system_activate_nis (NMIP4Config *config)
if (stat ("/usr/sbin/rcypbind", &sb) != -1)
{
nm_info ("Restarting ypbind.");
nm_spawn_process ("/usr/sbin/rcypbind restart");
nm_spawn_process ("/usr/sbin/rcypbind reload");
}
if (stat ("/usr/sbin/rcautofs", &sb) != -1)
{
nm_info ("Restarting autofs.");
nm_spawn_process ("/usr/sbin/rcautofs restart");
nm_spawn_process ("/usr/sbin/rcautofs reload");
}
}
}
@@ -1168,6 +1168,7 @@ out_gfree:
*/
void nm_system_shutdown_nis (void)
{
#if 0 /* XXX: let's not touch NIS, for now; probably need to make this a configurable option */
char *name, *buf = NULL;
shvarFile *file;
@@ -1201,6 +1202,7 @@ out_close:
svCloseFile (file);
out_gfree:
g_free (name);
#endif
}