@@ -81,11 +81,11 @@ async function startup(): Promise<void> {
8181 WebServer . startApp ( ) ;
8282 }
8383
84- // Load the trigger configuration.
84+ // Load the trigger configuration. Verifying the location is just a quick check for basic
85+ // mounting issues. It doesn't stop the startup of the system since globs are valid in
86+ // watchObject paths and that's not something that can easily be verified.
8587 triggersFilePath = TriggerManager . loadConfiguration ( [ "/run/secrets/triggers" , "/config/triggers.json" ] ) ;
86- if ( ! TriggerManager . verifyTriggerWatchLocations ( ) ) {
87- throw Error ( `Unable to access one or more watch locations.` ) ;
88- }
88+ TriggerManager . verifyTriggerWatchLocations ( ) ;
8989
9090 // Initialize the other handler managers. MQTT got done earlier
9191 // since it does double-duty and sends overall status messages for the system.
@@ -179,11 +179,11 @@ async function hotLoadTriggers(path: string) {
179179 // Shut down things that are running
180180 await TriggerManager . stopWatching ( ) ;
181181
182+ // Load the trigger configuration. Verifying the location is just a quick check for basic
183+ // mounting issues. It doesn't stop the startup of the system since globs are valid in
184+ // watchObject paths and that's not something that can easily be verified.
182185 TriggerManager . loadConfiguration ( [ path ] ) ;
183- if ( ! TriggerManager . verifyTriggerWatchLocations ( ) ) {
184- log . warn ( "Main" , `Unable to access one or more watch locations.` ) ;
185- return ;
186- }
186+ TriggerManager . verifyTriggerWatchLocations ( ) ;
187187
188188 TriggerManager . startWatching ( ) ;
189189}
0 commit comments