Re: Editing /etc/hostname(in Debian) with vim will remove its	inotify  watch
- From: Dan Williams <dcbw redhat com>
- To: cee1 <fykcee1 gmail com>
- Cc: networkmanager-list gnome org
- Subject: Re: Editing /etc/hostname(in Debian) with vim will remove its	inotify  watch
- Date: Mon, 08 Feb 2010 15:03:59 -0800
On Sun, 2010-01-31 at 15:10 +0800, cee1 wrote:
>         Hmm, I wasn't expecting this sort of thing.  I guess we need
>         to
>         monitor /etc as well to get events when the file gets added
>         back or
>         renamed to /etc/hostname.  Any chance you could do a patch for
>         that?
>         There's some directory monitoring code in
>         system-settings/plugins/ifcfg-rh/plugin.c that could be
>         adapted for this
>         (the code in ifcfg-rh monitors /etc/sysconfig/network).
>         
> ifcfg-rh monitors /etc/sysconfig/network[File]
> and /etc/sysconfig/network-scripts/[Directory].
> Editing /etc/sysconfig/network will also break monitoring
> of /etc/sysconfig/network.
> 
> 
> ifupdown should also monitor /etc/network/interfaces if "managed ==
> true"
> 
> 
> BTW, what are configs in /etc/sysconfig/network-scripts/ doing?
The are the standard Red Hat/Fedora network configuration files for use
with ifup/ifdown and NetworkManager.  It's where Red Hat, Fedora, Suse,
and Mandrake have always stored system-wide network configuration.
Dan
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]