Uncommenting LOG_FILE option in /etc/sysconfig/cgred.conf causes cgred service to fail in RHEL 6

Solution Verified - Updated -

Issue

  • Trying to use the LOG_FILE option in the /etc/sysconfig/cgred.conf, e.g. just uncommenting the default line give in the file:

    # Uncomment the following line to log to specified file instead of syslog
    LOG_FILE="/var/log/cgrulesengd.log"
    

[Re]start the cgred service and it fails:

# service cgred start
Starting CGroup Rules Engine Daemon: /sbin/cgrulesengd: unrecognized option '--log-file=/var/log/cgrulesengd.log'

cgrulesengd -- a daemon for the cgroups rules engine

Usage : cgrulesengd [options]

  options :
    -q           | --quiet             quiet mode
    -v           | --verbose           verbose mode
    -f <path>    | --logfile=<path>    write log to file
    -s[facility] | --syslog=[facility] write log to syslog
    -n           | --nodaemom          don't fork daemon
    -d           | --debug             same as -v -v -n -f -
    -Q           | --nolog             disable logging
    -h           | --help              show this help

                                                           [FAILED]
#

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • libcgroup prior to 0.37-2.el6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.