chipsenkbeil / service-manager-rs

Provides adapters to communicate with various operating system service managers like launchd and systemd
Apache License 2.0
179 stars 15 forks source link

Specify (in a cross-platform way) where to log service output #23

Open andrewdavidmackenzie opened 2 months ago

andrewdavidmackenzie commented 2 months ago

I am trying to understand my service's failures on macos, but there are no logs (that I can find).

This SO article suggests that specific keys are required in the plist on macos to get stdout and stderr into files I can tail? (I'm surprised there is no output logged by default - but could be I guess...).

Is there a way to do this, so I can see service output (stdout and/or stderr) on macos, but without having to "break-out" each platform in my code (e.g. use SystemdService etc), as service-manager being cross platform is one of it's greatest advantages for me.