From 05be426f91602cef26522d13174214067b96c6f8 Mon Sep 17 00:00:00 2001 From: randogoth Date: Tue, 6 Oct 2026 08:24:19 +0300 Subject: [PATCH] feat: add justfile recipe to kill backgrounded preview servers --- justfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/justfile b/justfile index 5bd67d5..3771cf5 100644 --- a/justfile +++ b/justfile @@ -21,3 +21,11 @@ preview-all: just tobias & just randogoth & wait + +# Kill any backgrounded preview servers (flux, tobias, randogoth) +stop: + # [.] rather than a literal dot: pkill -f also matches whatever shell is + # running this very command, since its argv contains the pattern text + # too. A dot there would self-match; the bracket form only matches the + # real server processes' plain "pelicanconf.py", not its own argv. + pkill -f 'pelicanconf[.]py' || true