fluent / fluent-package-builder

td-agent (Fluentd) Building and Packaging System
Apache License 2.0
22 stars 23 forks source link

Add option to choice whether it enables to start fluentd service or not #601

Open kenhys opened 7 months ago

kenhys commented 7 months ago

Problem

Current version does not automatically start fluentd service.

Expected

user can select whether fluentd service should start automatically.

Additional Information

Add option to check whether fluentd service start or not.

It may be better to refer configuration via property.

https://stackoverflow.com/questions/2365197/wix-how-can-i-set-a-property-externally

daipom commented 7 months ago

Note.

We changed the default setting of ServiceStartMode to Manual from Automatic on v5.0.0. The main purpose is to avoid the automatic start after installation.

The reason why we want to avoid automatic start after installation:

As a result, Fluentd on Windows no longer automatically starts after a system reboot. This is undesirable. So, we need to figure out how to do this well without causing those previous issues again.

daipom commented 7 months ago

We can enable automatic service start as follows.

$ sc config fluentdwinsvc start=delayed-auto

Please be aware of