Kentaro Hayashi
Kentaro Hayashi
> Hmm, GitHub "update branch" feature is not what I want. rebased manually. It should be "Update with rebase".
> Is this file created when fluent-package is installed? No, fluent-package doesn't install such a file. Reported problem was reproducible. :thinking:
This is PoC
Basically it will work, but there is one concern. If user execute directly c:\opt\fluent\bin\fluentd, it can not be blocked. Usually fluent package prompt will be used, so it is a...
It should use findstr /I
Verified when fluentdwinsvc is running, it will abort like this: ``` c:\opt\fluent>fluentd.bat -c c:\opt\fluent\etc\fluent\fluentd.conf Error: can't start duplicate Fluentd instance with same "c:\opt\fluent\etc\fluent\fluentd.conf" c:\opt\fluent>fluentd.bat Error: can't start duplicate Fluentd instance...
Hmm, it seems that fluentd.bat exit expectedly, but not capture $LASTEXITCODE correctly. ``` 2024-02-20T08:26:44.9840365Z DEBUG: 55+ >>>> Start-Process "C:\\opt\\fluent\\fluentd.bat" -ArgumentList [m [93m 2024-02-20T08:26:44.9842223Z "-c", "C:\\opt\\fluent\\etc\\fluent\\fluentd.conf" -Wait -NoNewWindow[11X[11C[m 2024-02-20T08:26:44.9843565Z [80X[80C 2024-02-20T08:26:45.0579514Z...
With locally built msi, it work as expected. ``` PS C:\opt\fluent> .\fluentd.bat Error: can't start duplicate Fluentd instance with same C:/opt/fluent/etc/fluent/fluentd.conf PS C:\opt\fluent> $exitcode = $LASTEXITCODE PS C:\opt\fluent> $exitcode 2...
It's a problem of test code. It should use `-PassThru` and capture with .ExitCode.
Test code was fixed, waiting CI.