This series of patches implements loading of configuration files from 
/etc/cgrules.d directory. First, /etc/cgrules.conf is parsed. After successful 
parse, files from /etc/cgrules.d directory are parsed. Because these files can 
be read in an arbitrary order, attention to rules in these files must be taken. 
Potential conflicts are explained in cgrules.d (5) man page in the second 
patch. In a case of missing or empty /etc/cgrules.d directory, 
/etc/cgrules.conf is still parsed. Thus honouring a back compatibility. 
Original cgroup_parse_rules function has the same signature. Only its 
description is modified. New function cgroup_parse_rules_file is presented. Its 
body is identical to the original cgroup_parse_rules, except to removing cache 
erasing and locking mechanism, which has been moved back to cgroup_parse_rules. 
cgroup_parse_rules consists of a call to cgroup_parse_rules with 
CGRULES_CONF_FILE file (back compatibility) plus opening and reading of files 
from CGRULES_CONF_DI!
 R directory.
---

Jan Chaloupka (2):
      api.c: Adding support for loading configuration files from cgrules.d 
directory
      cgrules.d: new man page


 doc/man/cgrules.conf.5   |   14 +++-
 doc/man/cgrules.d.5      |   35 ++++++++++
 doc/man/cgrulesengd.8    |   19 ++++-
 src/api.c                |  159 +++++++++++++++++++++++++++++++++++++++++++---
 src/libcgroup-internal.h |    1 
 5 files changed, 207 insertions(+), 21 deletions(-)
 create mode 100644 doc/man/cgrules.d.5

--
Jan Chaloupka <jchal...@redhat.com>

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to