We are not overriding the ShutdownStrategy in the syslog and trap contexts which means that they will use the default 300 second (5 minute) timeout when in-flight messages are still present in the Camel queues.
This causes problems if syslog and trap messages are received shortly after startup (which is likely) because Karaf is refreshing the Camel contexts. If a refresh happens, the context must be shutdown and restarted and the shutdown can experience the 5 minute timeout. This makes Minion startup take minutes and may cause Karaf feature install timeouts.
We need to override the default ShutdownStrategy with a strategy that uses reduced timeout values.