@@ -160,10 +160,24 @@ pub struct RootOpts {
160
160
pub internal_log_rate_limit : u64 ,
161
161
162
162
/// Set the duration in seconds to wait for graceful shutdown after SIGINT or SIGTERM are received.
163
- /// After the duration has passed, Vector will force shutdown. Default value is 60 seconds. If set
164
- /// to -1, Vector will never force shutdown.
165
- #[ arg( long, default_value = "60" , env = "VECTOR_GRACEFUL_SHUTDOWN_DURATION" , value_parser = clap:: value_parser!( i64 ) . range( -1 ..) ) ]
166
- pub graceful_shutdown_duration : i64 ,
163
+ /// After the duration has passed, Vector will force shutdown.
164
+ #[ arg(
165
+ long,
166
+ default_value = "60" ,
167
+ env = "VECTOR_GRACEFUL_SHUTDOWN_DURATION" ,
168
+ group = "graceful-shutdown-duration"
169
+ ) ]
170
+ pub graceful_shutdown_duration : u64 ,
171
+
172
+ /// Never time out while waiting for graceful shutdown after SIGINT or SIGTERM received. This is useful
173
+ /// when you would like for Vector to attempt to send data until terminated by a SIGKILL.
174
+ #[ arg(
175
+ long,
176
+ default_value = "false" ,
177
+ env = "VECTOR_GRACEFUL_SHUTDOWN_DURATION" ,
178
+ group = "graceful-shutdown-duration"
179
+ ) ]
180
+ pub no_forced_shutdown : bool ,
167
181
168
182
/// Set runtime allocation tracing
169
183
#[ cfg( feature = "allocation-tracing" ) ]
0 commit comments