summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2009-02-12 16:05:00 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2009-02-12 16:05:00 +0000
commit769ad7af2b82f8c030cc3d6cabaf480606a72d3e (patch)
tree03bc9620f359bfd01e3bbea337b18f8042d00eb7 /scripts
parent4eef30c1190216951615a865bfa6179458deaf0c (diff)
downloadlibcg-769ad7af2b82f8c030cc3d6cabaf480606a72d3e.zip
libcg-769ad7af2b82f8c030cc3d6cabaf480606a72d3e.tar.gz
libcg-769ad7af2b82f8c030cc3d6cabaf480606a72d3e.tar.xz
libcgroup: Add new command line options to sample config file
From: Jan Safranek <jsafrane@redhat.com> Add new command line options to sample config file Signed-off-by: Jan Safranek <jsafrane@redhat.com> Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@322 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'scripts')
-rw-r--r--scripts/init.d/cgred5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/init.d/cgred b/scripts/init.d/cgred
index ee9fc40..f0eebc4 100644
--- a/scripts/init.d/cgred
+++ b/scripts/init.d/cgred
@@ -50,7 +50,10 @@ CGRED_BIN=${exec_prefix}/${bindir}/cgrulesengd
# Read in configuration options.
if [ -f "/etc/cgred.d/cgred.conf" ] ; then
. /etc/cgred.d/cgred.conf
- OPTIONS="--log $LOG_FILE $NODAEMON $NOLOG"
+ OPTIONS="$NODAEMON $LOG"
+ if [ -n "$LOG_FILE" ]; then
+ OPTIONS="$OPTIONS --log-file=$LOG_FILE"
+ fi
else
OPTIONS=""
fi