mirror of https://github.com/CrimsonTome/tldr.git
16 lines
376 B
Markdown
16 lines
376 B
Markdown
|
# forever
|
||
|
|
||
|
> Server-side JavaScript application that makes sure Node.js applications run indefinitely (restarts after exit).
|
||
|
|
||
|
- Start running a file forever (as a daemon):
|
||
|
|
||
|
`forever {{script}}`
|
||
|
|
||
|
- List running "forever" processes (along with IDs and other details of "forever" processes):
|
||
|
|
||
|
`forever list`
|
||
|
|
||
|
- Stop a running "forever" process:
|
||
|
|
||
|
`forever stop {{ID|pid|script}}`
|