Skip to content

Commit

Permalink
web: one more check for the app to not exit right away with Systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
vindarel committed Sep 19, 2024
1 parent 483c0cf commit e113600
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions web.md
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,15 @@ Systemd handles crashes and **restarts the application**. That's the `Restart=on

Now keep in mind a couple things:

- your main thread has to be kept active, otherwise Systemd will
successfully start your app, think that nothing is happening, and it
will successfully stop your app. If your app offers a Lisp REPL upon
start, this is not enough.
- see how we keep our web server thread active in this recipe on
[scripting#for-web-apps](scripting.html#for-web-apps).
- then, if you want to connect to the running Lisp image, in that
case where you don't have access to your app's REPL, use a
[Swank server](debugging.html#remote-debugging).
- we want our app to crash so that it can be re-started automatically:
you'll want the `--disable-debugger` flag with SBCL.
- Systemd will, by default, run your app as root. If you rely on your
Expand Down

0 comments on commit e113600

Please sign in to comment.