Skip to content

Commit

Permalink
Merge branch 'main' of github.com:remy/nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Jun 20, 2024
2 parents 6e33a6d + fa58024 commit fb1e778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ nodemon --signal SIGHUP server.js
Your application can handle the signal as follows.

```js
process.once("SIGHUP", function () {
process.on("SIGHUP", function () {
reloadSomeConfiguration();
process.kill(process.pid, "SIGTERM");
})
```

Expand Down

0 comments on commit fb1e778

Please sign in to comment.