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:
parent
01f8197e3b
commit
2eb782a9f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue