Re: Editing /etc/hostname(in Debian) with vim will remove its inotify watch

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?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]