chore: document SIGINT cancellation in §4

After bug #9's context plumbing, a signal interrupts the current encode
immediately rather than waiting for the poll cycle. Document the new
shutdown semantics: children killed, work dir cleaned via the deferred
RemoveAll, source routed to failed/.
This commit is contained in:
Esa Kataja
2026-05-16 20:39:20 +03:00
parent 459ab30d94
commit 321f11dd8f
+1 -1
View File
@@ -100,7 +100,7 @@ Flags:
- `-d` — delete the source `.mkv` after a successful encode instead of moving it to `originals/`.
- `-c PATH` — path to config file.
Stop with `Ctrl+C` (SIGINT) or `SIGTERM`. A signal triggers a clean shutdown after the current poll cycle.
Stop with `Ctrl+C` (SIGINT) or `SIGTERM`. The signal cancels any in-flight encode immediately — the ffmpeg / ffprobe / opusenc children are killed, the per-job work directory is removed by its deferred cleanup, and the source `.mkv` is routed to `paths.failed` so the next run sees a clean `paths.input`.
The program runs as a foreground daemon. It scans the input directory on startup and every 15 seconds thereafter.