Re: Gentoo backend does not restart nscd properly
- From: Steev <steev steev net>
- To: Colin Slater <kiltedtaco gmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: Gentoo backend does not restart nscd properly
- Date: Sat, 06 Aug 2005 17:14:43 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Colin Slater wrote:
> When restarting nscd in nm_system_update_dns, the gentoo backend
> checks `/etc/init.d/nscd status` to determine if nscd is running. If
> the script returns non-zero, networkmanager restarts nscd properly.
> However, gentoo init
> scripts return 0 when the service is started, 1 when they are not started.
> Hence, networkmanager does not restart nscd. Attached patch fixes this
> behavior.
>
> Regards,
> Colin
>
>
> ------------------------------------------------------------------------
>
> Index: src/backends/NetworkManagerGentoo.c
> ===================================================================
> RCS file: /cvs/gnome/NetworkManager/src/backends/NetworkManagerGentoo.c,v
> retrieving revision 1.18
> diff -u -r1.18 NetworkManagerGentoo.c
> --- src/backends/NetworkManagerGentoo.c 26 Jul 2005 22:19:09 -0000 1.18
> +++ src/backends/NetworkManagerGentoo.c 4 Aug 2005 20:57:40 -0000
> @@ -229,7 +229,7 @@
> void nm_system_update_dns (void)
> {
> #ifdef NM_NO_NAMED
> - if (nm_spawn_process ("/etc/init.d/nscd status") != 0)
> + if (nm_spawn_process ("/etc/init.d/nscd status") == 0)
> nm_spawn_process ("/etc/init.d/nscd restart");
> #else
> nm_spawn_process("/usr/sbin/killall -q nscd");
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
Thanks for that, I knew something was going on with it and I couldn't
figure out why it was doing that (I am not actually a Gentoo dev, just a
user who wants to use NetworkManager, so I have been concentrating on
getting it to work.) Currently having problems with the latest CVS, and
I am not sure why, so I am still researching.
- -- steev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFC9TZT1c+EtXTHkJcRAhWJAJ9p1AQKk1oCP0J+/rWvqtuu4UnmNQCeJqPa
XSbz5oRkm+nvFPSbtb1ZMe8=
=DsKN
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]