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 ...@@ -38,7 +38,6 @@ set -e
# Get mysql user and password : # Get mysql user and password :
. /etc/alternc/local.sh . /etc/alternc/local.sh
. /etc/alternc/sqlbackup.conf
# get the date of the day # get the date of the day
DATE=`date +"%Y%m%d"` DATE=`date +"%Y%m%d"`
...@@ -88,7 +87,7 @@ print() { ...@@ -88,7 +87,7 @@ print() {
then then
echo "$EXEC_CMD $log_level: $*" echo "$EXEC_CMD $log_level: $*"
fi fi
echo "`date +"%b %d %T"` `hostname` $EXEC_CMD $log_level: $*" >> $F_LOG logger -p local0.$log_level -t sqlbackup "$*"
else else
if [ -z "$log_level" ]; if [ -z "$log_level" ];
then 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