mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-28 12:50:54 +00:00
Update mirrorsync.sh
Redirect stderr of kill to /dev/null
This commit is contained in:
parent
343a2269b2
commit
06d824e9df
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ fi
|
|||
|
||||
# Check for existing lockfile to avoid multiple simultaneously running syncs
|
||||
# If lockfile exists but process is dead continue anyway
|
||||
if [[ -e "$lockfile" ]] && ! kill -0 "$(< "$lockfile")"; then
|
||||
if [[ -e "$lockfile" ]] && ! kill -0 "$(< "$lockfile")" 2>/dev/null; then
|
||||
printf "Warning: lockfile exists but process dead, continuing.\n" >> "$logfile" 2>&1
|
||||
logger -t rsync "Warning: lockfile exists but process dead, continuing with updating ${mirrormodule}."
|
||||
rm -f "$lockfile"
|
||||
|
|
Loading…
Reference in a new issue