Skip to content

Commit

Permalink
Change: Allow overriding LOG_CMD for sync script
Browse files Browse the repository at this point in the history
Allow to override the LOG_CMD for greenbone-feed-sync
and log to stderror by default too.
  • Loading branch information
bjoernricks committed May 20, 2022
1 parent db474fb commit ef23ad7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tools/greenbone-feed-sync.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ PORT=24
# log messages.
SCRIPT_NAME="greenbone-feed-sync"

# LOG_CMD defines the command to use for logging. To have logger log to stderr
# as well as syslog, add "-s" here.
LOG_CMD="logger -t $SCRIPT_NAME"
# LOG_CMD defines the command to use for logging. To have logger log to syslog
# only, remove "-s" here.
if [ -z "$LOG_CMD" ]
then
LOG_CMD="logger -t $SCRIPT_NAME -s"
fi


# LOCK_FILE is the name of the file used to lock the feed during sync or update.
if [ -z "$LOCK_FILE" ]
Expand Down

0 comments on commit ef23ad7

Please sign in to comment.