typo
This commit is contained in:
@@ -934,28 +934,6 @@ if [[ "$WS" == "" && "$RS" == "" ]]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# poll redis infinitely for scheduler jobs
|
|
||||||
#check_redis_availability $REDIS_SERVER $REDIS_PORT $CURL_RETRIES $CURL_SLEEP_SHORT
|
|
||||||
#echo $(date)" Scheduler initialized, starting listening for events"
|
|
||||||
|
|
||||||
# STARTING SCHEDULER PROCESSES
|
|
||||||
# Initial parameters
|
|
||||||
DATE=$(date +%F-%H-%M-%S)
|
|
||||||
|
|
||||||
# Set env variables
|
|
||||||
DIR=$SHARED/input
|
|
||||||
|
|
||||||
# Triggers by certificate or domain config changes
|
|
||||||
|
|
||||||
unset IFS
|
|
||||||
|
|
||||||
inotifywait --exclude "\.(swp|tmp)" -m -e CREATE,CLOSE_WRITE,DELETE,MOVED_TO -r $DIR |
|
|
||||||
while read dir op file; do
|
|
||||||
if [ "${op}" == "CLOSE_WRITE,CLOSE" ]; then
|
|
||||||
echo "new file created: $file"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# STARTING SCHEDULER PROCESSES
|
# STARTING SCHEDULER PROCESSES
|
||||||
# Initial parameters
|
# Initial parameters
|
||||||
DATE=$(date +%F-%H-%M-%S)
|
DATE=$(date +%F-%H-%M-%S)
|
||||||
|
Reference in New Issue
Block a user