get rid of the F_LOG parameter and rely on syslog for logging if 'daemonized', do not source an extra config file

This commit is contained in:
Antoine Beaupré 2008-07-10 21:03:15 +00:00
parent 01f8197e3b
commit 2eb782a9f9
1 changed files with 1 additions and 2 deletions

View File

@ -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