Implement 40250 classic client port

This commit is contained in:
shenlei
2026-09-01 18:49:28 +09:00
parent 2277b1dd60
commit 8f61990a83
481 changed files with 169826 additions and 293 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -eu
server_root=${MT40250_ROOT:-/usr/metin2}
pid_file="$server_root/.mt40250-pids"
if [ ! -f "$pid_file" ]; then
echo "stop_server.sh: no $pid_file"
exit 0
fi
while read -r pid name; do
case "$pid" in
''|*[!0-9]*) continue ;;
esac
if kill -0 "$pid" 2>/dev/null; then
kill "$pid" 2>/dev/null || true
echo "stopped $name pid=$pid"
fi
done < "$pid_file"
rm -f "$pid_file"