You've already forked macports-infrastructure
mirror of
https://github.com/macports/macports-infrastructure.git
synced 2026-07-12 18:18:46 -07:00
mprsyncup-alt: print times for waiting for rsyncd
This commit is contained in:
+2
-2
@@ -177,7 +177,7 @@ if [ "$NEW_BASE" = 1 -o "$NEW_PORTS" = 1 ]; then
|
||||
# Stop rsyncd once there are no connections
|
||||
if [ "$HOSTOS" = "Linux" ]; then
|
||||
WAITED=0
|
||||
echo "Waiting for rsyncd to be idle"
|
||||
echo "Waiting for rsyncd to be idle since $(date -u -Iseconds)"
|
||||
while [ -n "$(ss -H 'sport = :rsync')" ]; do
|
||||
sleep 10
|
||||
WAITED=$(( $WAITED + 10 ))
|
||||
@@ -186,7 +186,7 @@ if [ "$NEW_BASE" = 1 -o "$NEW_PORTS" = 1 ]; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "Stopping rsyncd"
|
||||
echo "Stopping rsyncd at $(date -u -Iseconds)"
|
||||
sudo /usr/bin/systemctl stop rsync
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user