feat: add justfile recipe to kill backgrounded preview servers
This commit is contained in:
parent
5131f1f53f
commit
05be426f91
1 changed files with 8 additions and 0 deletions
8
justfile
8
justfile
|
|
@ -21,3 +21,11 @@ preview-all:
|
||||||
just tobias &
|
just tobias &
|
||||||
just randogoth &
|
just randogoth &
|
||||||
wait
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue