]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Cgred service won't start if /etc/cgrules.conf is missing
authorPeter Schiffer <pschiffe@redhat.com>
Tue, 25 Jun 2013 04:47:47 +0000 (06:47 +0200)
committerPeter Schiffer <pschiffe@redhat.com>
Tue, 25 Jun 2013 04:47:47 +0000 (06:47 +0200)
commit6b11b2663eac2ea20139077776334b0935cefc56
tree88bcde37bc8137f8010a99e95f62a6f60e98cee7
parentac6173f74922b7dbc46e87370b9bc42cd0fa892d
Cgred service won't start if /etc/cgrules.conf is missing

By default, the /etc/cgrules.conf file contains only comments. If this is the case, the cgred service starts without problem. But if /etc/cgrules.conf file is empty or missing, the cgred service won't start, even this case is equivalent with the first one.

This patch allows the cgred service start even when the /etc/cgrules.conf files is empty, or missing.

Signed-off-by: Peter Schiffer <pschiffe@redhat.com>
Acked-by: Jan Safranek <jsafrane@redhat.com>
Acked-by: Ivana Hutarova Varekova <varekova@redhat.com>
scripts/init.d/cgred.in
src/api.c