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