File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,13 @@ that domain to the server or VM's IP address.
328
328
329
329
## Daemonizing the server
330
330
331
- The easiest way to start a server process that survives the end of your login session is to either
332
- run ` nohup ./main.ts ` or invoke ` ./main.ts ` from within a terminal multiplexer such as ` screen ` or
333
- ` tmux ` .
331
+ The easiest way to start a server process that survives the end of your login session is to use
332
+ ` bash ` 's ` disown ` builtin:
333
+ ```
334
+ $ ./main.ts >disown.log 2>&1 &
335
+ $ disown %1
336
+ ```
337
+
338
+ Alternatively, you can run the server from within a terminal multiplexer such as ` screen ` or ` tmux ` .
339
+ Note that disowning via ` nohup ` currently breaks garbage collection of stale sessions, thereby
340
+ causing major resource leaks for instances shared by many users.
You can’t perform that action at this time.
0 commit comments