Skip to content

Commit 1122d14

Browse files
committed
add documentation about gracefully stopping the application
1 parent bfc13ef commit 1122d14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/how_to_run.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,10 @@ Controllers and executors can be run by specifying them as parameters when start
136136
```shell
137137
sentinela executor
138138
```
139+
140+
# Gracefully Stopping Sentinela
141+
Sentinela can be gracefully stopped by sending a `SIGINT` or `SIGTERM` signal to the process. This allows the application to finish processing any ongoing tasks before shutting down.
142+
143+
It's recommended to not forcefully kill the application because a monitor execution might be in progress, and killing the application would interrupt it, potentially leaving the monitor in an inconsistent state.
144+
145+
Sentinela has it's own internal process to check if there are any monitors in this inconsistent state and fixes them. However, it's still recommended to allow the application to gracefully stop.

0 commit comments

Comments
 (0)