Реализовать lab4: вложения S3/MinIO, уровень 4 и трек 2 reconciler.
Метаданные в PostgreSQL, байты в приватном bucket; sync upload 201 ready; компенсация orphan и cmd/reconcile с dry-run/apply и grace period.
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
# Уровень 4: прямое неаутентифицированное чтение объекта из bucket должно отказать.
|
||||
# Ожидание: HTTP 403 (или отказ соединения / 400 Signature) — не 200 с телом файла.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
|
||||
BUCKET=${S3_BUCKET:-messenger-attachments}
|
||||
ENDPOINT=${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:9000}
|
||||
# Любой ключ: даже несуществующий при private bucket не должен отдаваться анониму как 200+тело.
|
||||
URL="${ENDPOINT}/${BUCKET}/originals/does-not-exist"
|
||||
|
||||
code=$(curl -sS -o /tmp/private-bucket-body.$$ -w '%{http_code}' "$URL" || echo "000")
|
||||
body_len=$(wc -c < /tmp/private-bucket-body.$$ | tr -d ' ')
|
||||
rm -f /tmp/private-bucket-body.$$
|
||||
|
||||
echo "GET $URL → HTTP $code body_bytes=$body_len"
|
||||
case "$code" in
|
||||
200)
|
||||
echo "FAIL: anonymous GET returned 200" >&2
|
||||
exit 1
|
||||
;;
|
||||
000)
|
||||
echo "FAIL: could not reach MinIO at $ENDPOINT" >&2
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
echo "PASS: anonymous access denied (HTTP $code)"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
Executable
+130
@@ -0,0 +1,130 @@
|
||||
#!/bin/sh
|
||||
# Уровень 4: ≥10 одновременных загрузок + пик RSS API-реплик.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
export BASE_URL=${BASE_URL:-http://127.0.0.1:8080}
|
||||
export N=${N:-12}
|
||||
export OUT=${OUT:-evidence/concurrent-uploads.txt}
|
||||
mkdir -p evidence
|
||||
|
||||
python3 - <<'PY'
|
||||
import base64, binascii, json, os, struct, subprocess, sys, threading, time, urllib.request, uuid, zlib
|
||||
|
||||
base = os.environ["BASE_URL"]
|
||||
n = int(os.environ["N"])
|
||||
out = os.environ["OUT"]
|
||||
|
||||
def req(method, path, data=None, headers=None, timeout=60):
|
||||
h = dict(headers or {})
|
||||
body = data
|
||||
if isinstance(data, (dict, list)):
|
||||
body = json.dumps(data).encode()
|
||||
h.setdefault("Content-Type", "application/json")
|
||||
r = urllib.request.Request(base + path, data=body, headers=h, method=method)
|
||||
with urllib.request.urlopen(r, timeout=timeout) as resp:
|
||||
return resp.status, resp.read()
|
||||
|
||||
def chunk(tag, data):
|
||||
return struct.pack(">I", len(data)) + tag + data + struct.pack(">I", binascii.crc32(tag + data) & 0xffffffff)
|
||||
|
||||
# 1024×1024 RGB, zlib level 0 → ~3 MiB: заметнее для RSS, всё ещё ≪ 10 MiB лимита.
|
||||
w = h = 1024
|
||||
ihdr = struct.pack(">IIBBBBB", w, h, 8, 2, 0, 0, 0)
|
||||
raw = b"".join(b"\x00" + bytes(w * 3) for _ in range(h))
|
||||
big = b"\x89PNG\r\n\x1a\n" + chunk(b"IHDR", ihdr) + chunk(b"IDAT", zlib.compress(raw, 0)) + chunk(b"IEND", b"")
|
||||
print(f"upload_size_bytes={len(big)}", flush=True)
|
||||
|
||||
uname = "cu_" + uuid.uuid4().hex[:10]
|
||||
password = "correct-horse-1"
|
||||
st, body = req("POST", "/api/v1/users", {"username": uname, "display_name": "CU", "password": password})
|
||||
assert st == 201, body
|
||||
uid = json.loads(body)["id"]
|
||||
basic = base64.b64encode(f"{uname}:{password}".encode()).decode()
|
||||
st, body = req("POST", "/api/v1/auth/sessions", headers={"Authorization": f"Basic {basic}"})
|
||||
assert st == 201, body
|
||||
token = json.loads(body)["token"]
|
||||
st, body = req("POST", "/api/v1/chats", {"title": "concurrent", "member_ids": [uid]},
|
||||
headers={"Authorization": f"Bearer {token}"})
|
||||
assert st == 201, body
|
||||
chat = json.loads(body)["id"]
|
||||
|
||||
def api_rss_kb():
|
||||
try:
|
||||
ids = subprocess.check_output(
|
||||
["docker", "compose", "--env-file", ".env", "ps", "-q", "api"], text=True
|
||||
).split()
|
||||
total = 0
|
||||
for i in ids:
|
||||
line = subprocess.check_output(
|
||||
["docker", "stats", "--no-stream", "--format", "{{.MemUsage}}", i], text=True
|
||||
).strip()
|
||||
part = line.split("/")[0].strip()
|
||||
num = float("".join(ch for ch in part if ch.isdigit() or ch == "."))
|
||||
if "GiB" in part:
|
||||
total += int(num * 1024 * 1024)
|
||||
elif "MiB" in part:
|
||||
total += int(num * 1024)
|
||||
else:
|
||||
total += int(num)
|
||||
return total
|
||||
except Exception as e:
|
||||
print("rss_err", e, flush=True)
|
||||
return -1
|
||||
|
||||
rss_before = api_rss_kb()
|
||||
peak = {"v": rss_before}
|
||||
stop = threading.Event()
|
||||
|
||||
def monitor():
|
||||
while not stop.is_set():
|
||||
v = api_rss_kb()
|
||||
if v > peak["v"]:
|
||||
peak["v"] = v
|
||||
time.sleep(0.2)
|
||||
|
||||
mon = threading.Thread(target=monitor, daemon=True)
|
||||
mon.start()
|
||||
results = [None] * n
|
||||
barrier = threading.Barrier(n)
|
||||
|
||||
def worker(i):
|
||||
barrier.wait(60)
|
||||
try:
|
||||
r = urllib.request.Request(
|
||||
f"{base}/api/v1/chats/{chat}/attachments?filename=c{i}.png",
|
||||
data=big,
|
||||
headers={"Authorization": f"Bearer {token}", "Content-Type": "image/png"},
|
||||
method="POST",
|
||||
)
|
||||
with urllib.request.urlopen(r, timeout=120) as resp:
|
||||
results[i] = resp.status
|
||||
except Exception as e:
|
||||
results[i] = str(e)
|
||||
|
||||
threads = [threading.Thread(target=worker, args=(i,)) for i in range(n)]
|
||||
t0 = time.time()
|
||||
for th in threads:
|
||||
th.start()
|
||||
for th in threads:
|
||||
th.join()
|
||||
elapsed = time.time() - t0
|
||||
stop.set()
|
||||
mon.join(timeout=1)
|
||||
rss_after = api_rss_kb()
|
||||
ok = sum(1 for r in results if r == 201)
|
||||
text = "\n".join([
|
||||
f"concurrent={n}",
|
||||
f"upload_bytes={len(big)}",
|
||||
f"ok_201={ok}",
|
||||
f"results={results}",
|
||||
f"elapsed_s={elapsed:.3f}",
|
||||
f"api_rss_kb_before={rss_before}",
|
||||
f"api_rss_kb_peak={peak['v']}",
|
||||
f"api_rss_kb_after={rss_after}",
|
||||
]) + "\n"
|
||||
print(text, end="")
|
||||
open(out, "w").write(text)
|
||||
sys.exit(0 if ok == n else 1)
|
||||
PY
|
||||
echo "wrote $OUT"
|
||||
Executable
+146
@@ -0,0 +1,146 @@
|
||||
#!/bin/sh
|
||||
# Трек 5: внедрить orphan + missing, показать dry-run и apply, доказать защиту fresh.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
OUT=${OUT:-evidence/reconcile.txt}
|
||||
mkdir -p evidence
|
||||
: >"$OUT"
|
||||
|
||||
log() { echo "$@" | tee -a "$OUT"; }
|
||||
|
||||
BUCKET=$(grep -E '^S3_BUCKET=' .env | cut -d= -f2-)
|
||||
BUCKET=${BUCKET:-messenger-attachments}
|
||||
ROOT_USER=$(grep -E '^MINIO_ROOT_USER=' .env | cut -d= -f2-)
|
||||
ROOT_PASS=$(grep -E '^MINIO_ROOT_PASSWORD=' .env | cut -d= -f2-)
|
||||
ROOT_USER=${ROOT_USER:-minioadmin}
|
||||
ROOT_PASS=${ROOT_PASS:-minioadmin-secret}
|
||||
ORPHAN_KEY="originals/00000000-0000-4000-8000-0000000000aa"
|
||||
|
||||
log "=== seed orphan object via root PutObject (python/minio not required: curl+aws style via go) ==="
|
||||
# Используем временный контейнер с нашим s3bootstrap-окружением нельзя для PUT.
|
||||
# Кладём объект через API MinIO SDK в одноразовом python boto? Проще — docker run с
|
||||
# нашим образом и маленьким go-one-liner... Пишем через awscli-совместимый путь:
|
||||
# minio client отсутствует → используем python3 + urllib подписанный запрос слишком сложен.
|
||||
# Простой путь: временный Go в scripts/seed_orphan — нет. Используем docker compose run
|
||||
# с entrypoint /s3bootstrap нельзя. Добавим флаг...
|
||||
# Практика: python boto3 если есть, иначе raw Put через minio-go в compose run server?
|
||||
# Самое простое — python3 и hashlib hmac для SigV4.
|
||||
|
||||
python3 - <<PY | tee -a "$OUT"
|
||||
import hashlib, hmac, datetime, urllib.request
|
||||
access="${ROOT_USER}"
|
||||
secret="${ROOT_PASS}"
|
||||
bucket="${BUCKET}"
|
||||
key="${ORPHAN_KEY}"
|
||||
host="127.0.0.1:9000"
|
||||
body=b"orphan-bytes"
|
||||
t=datetime.datetime.utcnow()
|
||||
amz=t.strftime("%Y%m%dT%H%M%SZ")
|
||||
datestamp=t.strftime("%Y%m%d")
|
||||
payload_hash=hashlib.sha256(body).hexdigest()
|
||||
canonical_headers=f"host:{host}\nx-amz-content-sha256:{payload_hash}\nx-amz-date:{amz}\n"
|
||||
signed_headers="host;x-amz-content-sha256;x-amz-date"
|
||||
canonical_request="\n".join([
|
||||
"PUT", f"/{bucket}/{key}", "", canonical_headers, signed_headers, payload_hash
|
||||
])
|
||||
credential_scope=f"{datestamp}/us-east-1/s3/aws4_request"
|
||||
string_to_sign="\n".join([
|
||||
"AWS4-HMAC-SHA256", amz, credential_scope, hashlib.sha256(canonical_request.encode()).hexdigest()
|
||||
])
|
||||
def sign(key, msg):
|
||||
return hmac.new(key, msg.encode(), hashlib.sha256).digest()
|
||||
kDate=sign(("AWS4"+secret).encode(), datestamp)
|
||||
kRegion=sign(kDate, "us-east-1")
|
||||
kService=sign(kRegion, "s3")
|
||||
kSigning=sign(kService, "aws4_request")
|
||||
signature=hmac.new(kSigning, string_to_sign.encode(), hashlib.sha256).hexdigest()
|
||||
auth=f"AWS4-HMAC-SHA256 Credential={access}/{credential_scope}, SignedHeaders={signed_headers}, Signature={signature}"
|
||||
req=urllib.request.Request(
|
||||
f"http://{host}/{bucket}/{key}", data=body, method="PUT",
|
||||
headers={
|
||||
"Host": host,
|
||||
"x-amz-content-sha256": payload_hash,
|
||||
"x-amz-date": amz,
|
||||
"Authorization": auth,
|
||||
"Content-Length": str(len(body)),
|
||||
},
|
||||
)
|
||||
try:
|
||||
with urllib.request.urlopen(req) as resp:
|
||||
print("orphan_put", resp.status)
|
||||
except Exception as e:
|
||||
print("orphan_put_err", e)
|
||||
raise
|
||||
PY
|
||||
|
||||
log "=== seed missing metadata (DB row, no S3 object) ==="
|
||||
docker compose --env-file .env exec -T postgres \
|
||||
psql -U messenger -d messenger -v ON_ERROR_STOP=1 <<'SQL' | tee -a "$OUT"
|
||||
DO $$
|
||||
DECLARE
|
||||
uid uuid;
|
||||
cid uuid;
|
||||
aid uuid := '11111111-1111-4111-8111-111111111111';
|
||||
BEGIN
|
||||
SELECT id INTO uid FROM users LIMIT 1;
|
||||
IF uid IS NULL THEN
|
||||
RAISE NOTICE 'no users yet — skip missing seed';
|
||||
RETURN;
|
||||
END IF;
|
||||
SELECT c.id INTO cid
|
||||
FROM chats c JOIN chat_members m ON m.chat_id = c.id AND m.user_id = uid
|
||||
LIMIT 1;
|
||||
IF cid IS NULL THEN
|
||||
RAISE NOTICE 'no chat — skip missing seed';
|
||||
RETURN;
|
||||
END IF;
|
||||
INSERT INTO attachments (
|
||||
id, chat_id, owner_id, filename, content_type, size_bytes, sha256,
|
||||
object_key, status, error_code, created_at, updated_at
|
||||
) VALUES (
|
||||
aid, cid, uid, 'missing.png', 'image/png', 12,
|
||||
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
|
||||
'originals/11111111-1111-4111-8111-111111111111',
|
||||
'ready', NULL,
|
||||
now() - interval '2 hours', now() - interval '2 hours'
|
||||
) ON CONFLICT (id) DO UPDATE SET created_at = EXCLUDED.created_at, updated_at = EXCLUDED.updated_at;
|
||||
END $$;
|
||||
SQL
|
||||
|
||||
log "=== dry-run grace=0 ==="
|
||||
docker compose --env-file .env run --rm --no-deps reconcile -grace-seconds=0 2>&1 | tee -a "$OUT"
|
||||
|
||||
log "=== apply grace=0 ==="
|
||||
docker compose --env-file .env run --rm --no-deps reconcile -apply -grace-seconds=0 2>&1 | tee -a "$OUT"
|
||||
|
||||
log "=== second apply (idempotent) ==="
|
||||
docker compose --env-file .env run --rm --no-deps reconcile -apply -grace-seconds=0 2>&1 | tee -a "$OUT"
|
||||
|
||||
log "=== fresh orphan skipped with default grace ==="
|
||||
python3 - <<PY | tee -a "$OUT"
|
||||
import hashlib, hmac, datetime, urllib.request
|
||||
access="${ROOT_USER}"; secret="${ROOT_PASS}"; bucket="${BUCKET}"
|
||||
key="originals/00000000-0000-4000-8000-0000000000bb"
|
||||
host="127.0.0.1:9000"; body=b"fresh"
|
||||
t=datetime.datetime.utcnow(); amz=t.strftime("%Y%m%dT%H%M%SZ"); datestamp=t.strftime("%Y%m%d")
|
||||
payload_hash=hashlib.sha256(body).hexdigest()
|
||||
canonical_headers=f"host:{host}\nx-amz-content-sha256:{payload_hash}\nx-amz-date:{amz}\n"
|
||||
signed_headers="host;x-amz-content-sha256;x-amz-date"
|
||||
canonical_request="\n".join(["PUT", f"/{bucket}/{key}", "", canonical_headers, signed_headers, payload_hash])
|
||||
credential_scope=f"{datestamp}/us-east-1/s3/aws4_request"
|
||||
string_to_sign="\n".join(["AWS4-HMAC-SHA256", amz, credential_scope, hashlib.sha256(canonical_request.encode()).hexdigest()])
|
||||
def sign(key, msg): return hmac.new(key, msg.encode(), hashlib.sha256).digest()
|
||||
kSigning=sign(sign(sign(sign(("AWS4"+secret).encode(), datestamp), "us-east-1"), "s3"), "aws4_request")
|
||||
signature=hmac.new(kSigning, string_to_sign.encode(), hashlib.sha256).hexdigest()
|
||||
auth=f"AWS4-HMAC-SHA256 Credential={access}/{credential_scope}, SignedHeaders={signed_headers}, Signature={signature}"
|
||||
req=urllib.request.Request(f"http://{host}/{bucket}/{key}", data=body, method="PUT", headers={
|
||||
"Host": host, "x-amz-content-sha256": payload_hash, "x-amz-date": amz, "Authorization": auth,
|
||||
"Content-Length": str(len(body)),
|
||||
})
|
||||
with urllib.request.urlopen(req) as resp:
|
||||
print("fresh_put", resp.status)
|
||||
PY
|
||||
docker compose --env-file .env run --rm --no-deps reconcile 2>&1 | tee -a "$OUT"
|
||||
|
||||
log "wrote $OUT"
|
||||
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Перезапуск API (всех реплик), LB и всех хранилищ без удаления volumes.
|
||||
# Важно: именно restart, а не up -d — иначе PID/StartedAt у живых контейнеров не меняются.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
docker compose --env-file .env restart postgres redis minio api lb
|
||||
Executable
+42
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
# Поднимает недостающие / остановленные API-реплики до API_REPLICAS после stop-one.
|
||||
# Не трогает volumes и не делает down -v. Миграции уже применены — не пересоздаём migrate.
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
API_REPLICAS=$(grep -E '^API_REPLICAS=' .env 2>/dev/null | cut -d= -f2- || true)
|
||||
API_REPLICAS=${API_REPLICAS:-2}
|
||||
|
||||
# Стартуем остановленные контейнеры сервиса api и добираем scale при нехватке.
|
||||
docker compose --env-file .env start api 2>/dev/null || true
|
||||
docker compose --env-file .env up -d --no-deps --scale "api=${API_REPLICAS}" api
|
||||
|
||||
deadline=$(( $(date +%s) + 90 ))
|
||||
while :; do
|
||||
if curl -fsS "http://127.0.0.1:8080/health/ready" >/dev/null 2>&1; then
|
||||
# Ждём, пока LB реально видит ≥2 instance id (не только один backend).
|
||||
ids=$(
|
||||
python3 - <<'PY'
|
||||
import urllib.request
|
||||
ids=set()
|
||||
for _ in range(24):
|
||||
try:
|
||||
with urllib.request.urlopen('http://127.0.0.1:8080/health/live', timeout=1) as r:
|
||||
i=r.headers.get('X-Instance-Id')
|
||||
if i: ids.add(i)
|
||||
except Exception:
|
||||
pass
|
||||
print(len(ids))
|
||||
PY
|
||||
)
|
||||
if [ "$ids" -ge 2 ] || [ "$API_REPLICAS" -lt 2 ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
if [ "$(date +%s)" -ge "$deadline" ]; then
|
||||
echo "restore timeout (replicas visible via LB: ${ids:-0})" >&2
|
||||
docker compose --env-file .env ps >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/sh
|
||||
# Останавливает РОВНО одну API-реплику, чей X-Instance-Id = TARGET_INSTANCE_ID.
|
||||
# Реплика остаётся остановленной; восстановление — scripts/restore-one.sh или compose up.
|
||||
# Не трогает postgres/redis/lb/volumes. Должен завершиться за <10 с.
|
||||
set -eu
|
||||
: "${TARGET_INSTANCE_ID:?test provides target API instance alias}"
|
||||
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
|
||||
ids=$(docker compose --env-file .env ps -q api)
|
||||
if [ -z "$ids" ]; then
|
||||
echo "no api containers" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
found=0
|
||||
for id in $ids; do
|
||||
# Совпадает с config.InstanceID: hostname контейнера, если INSTANCE_ID не задан.
|
||||
hostname=$(docker inspect -f '{{.Config.Hostname}}' "$id")
|
||||
env_id=$(docker inspect -f '{{range .Config.Env}}{{println .}}{{end}}' "$id" | sed -n 's/^INSTANCE_ID=//p' | head -n1)
|
||||
match=$hostname
|
||||
if [ -n "$env_id" ]; then
|
||||
match=$env_id
|
||||
fi
|
||||
if [ "$match" = "$TARGET_INSTANCE_ID" ]; then
|
||||
# Явный stop контейнера; restart: "no" у api гарантирует, что он не вернётся сам.
|
||||
docker stop -t 8 "$id" >/dev/null
|
||||
# Подтверждаем, что контейнер действительно не running — иначе failover-тест врёт.
|
||||
state=$(docker inspect -f '{{.State.Running}}' "$id")
|
||||
if [ "$state" = "true" ]; then
|
||||
echo "container still running after stop" >&2
|
||||
exit 1
|
||||
fi
|
||||
found=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$found" -ne 1 ]; then
|
||||
echo "TARGET_INSTANCE_ID not found among api replicas" >&2
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
# Единая последовательность запуска стенда lab4.
|
||||
# 1) postgres+redis+minio 2) bootstrap bucket 3) миграции 4) API×N 5) HAProxy
|
||||
set -eu
|
||||
ROOT=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
cd "$ROOT"
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
cp .env.example .env
|
||||
echo "created .env from .env.example" >&2
|
||||
fi
|
||||
|
||||
API_REPLICAS=$(grep -E '^API_REPLICAS=' .env | cut -d= -f2- || true)
|
||||
API_REPLICAS=${API_REPLICAS:-2}
|
||||
|
||||
docker compose --env-file .env config --quiet
|
||||
docker compose --env-file .env up -d --build postgres redis minio
|
||||
docker compose --env-file .env run --rm minio-init
|
||||
docker compose --env-file .env run --rm --build migrate
|
||||
docker compose --env-file .env up -d --build --scale "api=${API_REPLICAS}" --no-deps api
|
||||
docker compose --env-file .env up -d --no-deps lb
|
||||
|
||||
echo "waiting for http://127.0.0.1:8080/health/ready via LB..."
|
||||
deadline=$(( $(date +%s) + 180 ))
|
||||
while :; do
|
||||
if curl -fsS "http://127.0.0.1:8080/health/ready" >/dev/null 2>&1; then
|
||||
echo "ready"
|
||||
docker compose --env-file .env ps
|
||||
exit 0
|
||||
fi
|
||||
if [ "$(date +%s)" -ge "$deadline" ]; then
|
||||
echo "timeout waiting for readiness" >&2
|
||||
docker compose --env-file .env ps >&2 || true
|
||||
docker compose --env-file .env logs --tail=80 api lb minio minio-init >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
Reference in New Issue
Block a user