Added new _LOGGER variables

This commit is contained in:
deajan 2016-08-03 23:58:38 +02:00
parent 6bb5ab9c22
commit 29c99dae67
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,9 @@ source "./ofunctions.sh"
## Working directory. This directory exists in any replica and contains state files, backups, soft deleted files etc ## Working directory. This directory exists in any replica and contains state files, backups, soft deleted files etc
OSYNC_DIR=".osync_workdir" OSYNC_DIR=".osync_workdir"
_LOGGER_PREFIX="time"
_LOGGER_STDERR=0
function TrapStop { function TrapStop {
if [ $SOFT_STOP -eq 0 ]; then if [ $SOFT_STOP -eq 0 ]; then
Logger " /!\ WARNING: Manual exit of osync is really not recommended. Sync will be in inconsistent state." "WARN" Logger " /!\ WARNING: Manual exit of osync is really not recommended. Sync will be in inconsistent state." "WARN"
@ -1729,6 +1732,8 @@ do
--on-changes) --on-changes)
sync_on_changes=1 sync_on_changes=1
_NOLOCKS=1 _NOLOCKS=1
_LOGGER_PREFIX="date"
_LOGGER_STDERR=1
;; ;;
--no-locks) --no-locks)
_NOLOCKS=1 _NOLOCKS=1