Public bug reported:

The /etc/init.d/cgred startup script looks for the file
/etc/default/cgred.conf rather than /etc/default/cgred.

Additionally, the script makes no use of the DAEMON_OPTS variable found
in the default file.

Lastly, the log file parameter as provided won't work. (the daemon exits
with a usage error) One has to use the -f option instead of --log-file
in order for the daemon to start.

It might be good to document LOG_FILE via a comment in
/etc/default/cgred.


-if [ -f "/etc/default/cgred.conf" ] ; then
-       . /etc/default/cgred.conf
-       OPTIONS="$NODAEMON $LOG"
+if [ -f "/etc/default/cgred" ] ; then
+       . /etc/default/cgred
+       OPTIONS="$NODAEMON $LOG $DAEMON_OPTS"
        if [ -n "$LOG_FILE" ]; then
-               OPTIONS="$OPTIONS --log-file=$LOG_FILE"
+               OPTIONS="$OPTIONS -f $LOG_FILE"
        fi

** Affects: libcgroup (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/825598

Title:
  cgred init script references wrong default file and uses bad options

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcgroup/+bug/825598/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to