cms icon indicating copy to clipboard operation
cms copied to clipboard

ResourceService doesn't start LogService

Open bblackham opened this issue 12 years ago • 2 comments

Is there any reason why it shouldn't? (It's currently hard-coded not to).

If you want to start LogService yourself, you can. If you don't want LogService at all, you can remove it from cms.conf.

(Motivated by the desire for an init script to just be able to start one program - cmsResourceService).

bblackham avatar Mar 13 '13 02:03 bblackham

My motivation was that you always want to start logservice alone because if you start everything else with RS then you have no other way to see the logs while they are happening. I think at the time AWS did not pick the important logs from LS.

Since LS does also other things, especially now, and since it is easy to start it alone even when all others are started by RS, we can remove the hardcoding. If you feel inspired, you could add a new standard option to the services that tries to tell RS to toggle the autorun from that service and kill it, before going on.

But feel free to close this as soon as you remove the hardcoding of LS :)

stefano-maggiolo avatar Mar 13 '13 09:03 stefano-maggiolo

Is this still relevant?

I think having one less service to start would be quite nice.

There is the concern that you might lose messages from services during startup. But, I think most startup errors are likely to occur before the service connects to LogService and so they would be lost anyways. ResourceService could also prioritize LogService a bit (start it first and wait for it to accept connections before starting other services).

prandla avatar Aug 23 '25 20:08 prandla