Commit e12bb9bb authored by Antoine Beaupré's avatar Antoine Beaupré Committed by fred

get rid of the F_LOG parameter and rely on syslog for logging if 'daemonized',...

get rid of the F_LOG parameter and rely on syslog for logging if 'daemonized', do not source an extra config file
parent 56156e7e
......@@ -38,7 +38,6 @@ set -e
# Get mysql user and password :
. /etc/alternc/local.sh
. /etc/alternc/sqlbackup.conf
# get the date of the day
DATE=`date +"%Y%m%d"`
......@@ -88,7 +87,7 @@ print() {
then
echo "$EXEC_CMD $log_level: $*"
fi
echo "`date +"%b %d %T"` `hostname` $EXEC_CMD $log_level: $*" >> $F_LOG
logger -p local0.$log_level -t sqlbackup "$*"
else
if [ -z "$log_level" ];
then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment