|
@@ -143,11 +143,12 @@ host = Settings.internal.documentupdater.host or "localhost"
|
|
|
if !module.parent # Called directly
|
|
if !module.parent # Called directly
|
|
|
app.listen port, host, ->
|
|
app.listen port, host, ->
|
|
|
logger.info "Document-updater starting up, listening on #{host}:#{port}"
|
|
logger.info "Document-updater starting up, listening on #{host}:#{port}"
|
|
|
|
|
+ if Settings.continuousBackgroundFlush
|
|
|
|
|
+ logger.info "Starting continuous background flush"
|
|
|
|
|
+ DeleteQueueManager.startBackgroundFlush()
|
|
|
|
|
+
|
|
|
module.exports = app
|
|
module.exports = app
|
|
|
|
|
|
|
|
for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT']
|
|
for signal in ['SIGINT', 'SIGHUP', 'SIGQUIT', 'SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGABRT']
|
|
|
process.on signal, shutdownCleanly(signal)
|
|
process.on signal, shutdownCleanly(signal)
|
|
|
|
|
|
|
|
-if Settings.continuousBackgroundFlush
|
|
|
|
|
- logger.info "Starting continuous background flush"
|
|
|
|
|
- DeleteQueueManager.startBackgroundFlush()
|
|
|