mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 11:28:40 +00:00
fix(cli): open log files in write mode to truncate on startup
This commit is contained in:
@@ -111,7 +111,7 @@ function startDaemon(appName: string, pidFile: string, logFile: string): void {
|
||||
}
|
||||
|
||||
console.log(`Starting ${appName} in background...`)
|
||||
const logFd = openSync(logFile, 'a')
|
||||
const logFd = openSync(logFile, 'w')
|
||||
|
||||
const childArgs = process.argv.slice(1).filter((arg) => arg !== '-d' && arg !== 'restart')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user