Changeset 2258

Show
Ignore:
Timestamp:
07/10/08 23:03:15 (5 months ago)
Author:
anarcat
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/src/sqlbackup.sh

    r2257 r2258  
    3939# Get mysql user and password :  
    4040. /etc/alternc/local.sh 
    41 . /etc/alternc/sqlbackup.conf 
    4241 
    4342# get the date of the day 
     
    8988                echo "$EXEC_CMD $log_level: $*" 
    9089            fi 
    91             echo "`date +"%b %d %T"` `hostname` $EXEC_CMD $log_level: $*" >> $F_LOG 
     90            logger -p local0.$log_level -t sqlbackup "$*" 
    9291        else 
    9392            if [ -z "$log_level" ];