summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
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