Skip to content

Commit 515786b

Browse files
Improve stop command
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Amin Vakil <[email protected]>
1 parent 62a5d6d commit 515786b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conf/fluent-bit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ stop_fluent_bit() {
3838
# 1 if daemon was already stopped
3939
# 2 if daemon could not be stopped
4040
# other if a failure occurred
41-
start-stop-daemon --stop --quiet --name $NAME
41+
start-stop-daemon --stop --quiet --exec "$DAEMON" --retry=TERM/5/KILL/5 --oknodo
4242
}
4343

4444
case "$1" in

0 commit comments

Comments
 (0)