Keep socket listener active during deployment

This commit is contained in:
udo
2026-07-20 14:07:28 +00:00
parent e22cbf8882
commit 91c745c44b
3 changed files with 13 additions and 0 deletions
+3
View File
@@ -24,6 +24,9 @@ inode_before=$(stat -c %i "$socket_path")
load_pid=$!
sleep 0.05
systemctl restart "$service_name"
systemctl is-active --quiet "$socket_name"
inode_during=$(stat -c %i "$socket_path")
[[ "$inode_during" = "$inode_before" ]]
wait "$load_pid"
inode_after=$(stat -c %i "$socket_path")