I realize this is a bit untypical, but I’m running a webserver as follows:
sigint_handler() {
kill $PID
exit
}
trap sigint_handler SIGINT
while true; do
sleep 0.1s
clear
echo "==============================="
julia www/server.jl &
PID=$!
inotifywait -e close_write www/server.jl
kill $PID
done
I’m wondering if there is a way to inject the JET.jl as a static check before the julia server.jl; so it starts the server if and only if JET.jl finds no obvious errors.