Re: gkrellm "net" doesn't play nice with docker: how to remove or ignore-by-regex?

Stuart Longland <[email protected]> Wed, 8 Jun 2016 08:15:20 +1000
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On 08/06/16 08:02, Adam Nielsen wrote:
>> So, a query… is it possible to remove these entries from gkrellm's
>> memory, either manually, or automatically have it ignore networks that
>> match a given pattern?
> 
> I've done this before, manually, by removing the relevant lines from
> ~/.gkrellm2/user-config.
> 
> I guess you could use a sed script to remove any lines that start with
> "net" and contain one of the network interfaces you want to remove.  If
> you do that before gkrellm launches then you should only see interfaces
> new for that instance.

Yeah, I had a look and it seems that might be possible, the trouble is
timing.

Running the command:

$ sed -i -e '/v\(eth\|net\)[0-9a-f]\+/ d; /br-/ d' ~/.gkrellm2/user-config

just as I click "Restart Self" in the FVWM menu isn't sufficient, as I'm
basically racing gkrellm.  Is there a signal that it accepts to tell it
to re-load its configuration file?  (e.g. like -HUP does with some daemons?)
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXV0d4AAoJEE36GRQQveO31nwP/jpILgh2q6mGVF4nJ6lj97XI
uDP7bA5pgU1bEHRjn1XuYltEjeBTvqa9h9wCkXcIjUs3LHzYrRMus6DD4cU1qiGa
KW7sUGT/xe5gfpHQhMB+Huz9bOxnev+Afpih8Zi9W/vV1KAdAM8VdyFmopD8WIqg
yUO7pGvqP6h9YkFhNJngzHZlPfYtGHp/GciOMcpqKHVjP6xUXA7GuwH7iU3yB2Qy
fPpB3Em8EurKkCGXOJ1jdEV+cTNldwUBw97/iL5v0ZZ3yoZaZY1zreZDVzU0oBs8
YeHOkajLL2XgrbXyOR35emtEmnZfT8N+Zg6vI5UZL1YiVZC68n39WWqtWmNN7HM6
h2v4oNKVfXw8qvowHy3WYsHYVAovIPzK8sJc5uFmBIhcu+T8P7Q//T6TFiBaaLE1
e6BzdllMA3cpDxDgMQR7sX75TqAh7GEMfLqb3UK6b620sYxFWT2rNwt1Kc5oyj/B
+Lw79b1Xs7RJStYAiCBKlSZrW+6nL3vbdoSVD/1NntcmYz371tkik+l578VWdBVF
8qk7mt1dz4NVfhvgQidSaLpWPAYurp24mebLAZWYecWvD4fl8WaBYo/WOtCaUDI/
S2m2VuefhhgMkBC5TWvpWJIOi9oI0J98Z1O7JueFPvO6rGgMriykbcFf218cPnbS
FocSTfMFFGQ2YeYQMm4t
=Hp+T
-----END PGP SIGNATURE-----