fix(observabilidade): stub watcher sai limpo com exit 0 para Task 9 systemd
This commit is contained in:
@@ -24,8 +24,11 @@ async function main(): Promise<void> {
|
||||
console.log(`[indexer] modo=${mode} db=${dbPath}`)
|
||||
|
||||
if (mode === '--watch') {
|
||||
startWatcher()
|
||||
return
|
||||
console.log(`[indexer] watch mode em ${dbPath}`)
|
||||
await indexAll({ dbPath })
|
||||
await startWatcher(dbPath)
|
||||
console.log('[indexer] watcher ainda não implementado (ver Task 8) — saída limpa')
|
||||
process.exit(0)
|
||||
}
|
||||
|
||||
const start = Date.now()
|
||||
|
||||
Reference in New Issue
Block a user