ceviche-rs icon indicating copy to clipboard operation
ceviche-rs copied to clipboard

Set arguments for the service

Open Azarattum opened this issue 9 months ago • 2 comments

Currently there is no way to register a service with specific arguments. It would be nice to be able to pass Vec<String> to controller.create, so that the services is registered with the corrects args array.

If breaking changes are undesirable, a sibling method like controller.create_with_args would also be ok.

If there is any workaround to set arguments to a service, please let me know.

Azarattum avatar Mar 28 '25 11:03 Azarattum

We agree with the suggested change (new controller.create_with_args method), if you can submit a pull request, we'll review it

awakecoding avatar Mar 28 '25 12:03 awakecoding

I cannot figure out how to pass start parameters for the service on windows (at least consistently). If we just modify the ImagePath it doesn't pass the params to service_main_wrapper. However manually editing Start parameters field in services.msc does apply them correctly for a single manual run. I haven't found a way (even manually editing registry) to replicate the Start parameters on every service restart. Am I missing something? Any ideas?

Azarattum avatar Mar 30 '25 04:03 Azarattum