id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,repo,url,merged_by,auto_merge 1169793638,PR_kwDOBm6k_c5FuaJm,1965,closed,0,Detect server start/stop more reliably.,11321,"This is useful, especially in testing, since your test hosts might not reliabliy start the server within two seconds, so we do a definite check before progressing. By the same token, after `kill $server_pid` wait for the pid to be gone from the process list. Since now the script can end prematurely, I also added a cleanup function to make sure the temporary certs are removed in any case. n.b. this could also be done with the use of `trap 'fn' ERR` but that felt like a bit too much magic for this short a script. ---- :books: Documentation preview :books:: https://datasette--1965.org.readthedocs.build/en/1965/ ",2022-12-18T10:03:42Z,2022-12-20T19:08:26Z,2022-12-18T16:01:51Z,2022-12-18T16:01:51Z,e03aed00026cc2e59c09ca41f69a247e1a85cc89,,,0,6a58fc71d481d27ef28a75b026b47713ca88eeec,a21c00b54dd6e0ecb17c60024fb1b55729c5d21e,CONTRIBUTOR,107914493,https://github.com/simonw/datasette/pull/1965,,