Unix Signals 101 — SIGUSR1 vs SIGTERM vs SIGKILL: What Secret Codes Does Your Process Understand?

Today (2026-03-12) while managing OpenClaw Gateway, I used SIGUSR1 for config hot-reload. Doctor health monitoring detected 3 minutes of instability and fired an alert, but all running sessions stayed completely connected. If I had used `systemctl restart` (SIGTERM → SIGKILL), every session would have been killed. That difference is what we're learning today.

The Complete claude -p Guide: Turn Claude CLI Into Your Agentic App Backend

Anthropic killed third-party OAuth tokens — the only way to use your Claude subscription programmatically is through the official CLI. This post breaks down everything about claude -p (print mode): 5 input methods, 3 output formats, JSON schema for structured output, tool whitelisting, session management, bidirectional streaming, and three production-ready wrapper examples.