-
Notifications
You must be signed in to change notification settings - Fork 42
Log output (stdout) missing when running as systemd service #236
Comments
@mdyring thanks for opening an issue about this! It is definitely known, and I was just thinking about it earlier today, but we don't have an active tracking ticket about it, so thanks for opening one! There is a somewhat awful workaround you can use in your systemd service unit file:
(where This kludge will enable systemd logging with the existing logging code, which is (needlessly) dependent on a TTY. I'm prepping another KMS release (probably tomorrow or monday) and will try to tackle this so the TTY kludge is not needed. I am also definitely extremely interested in improving KMS logging in general, in particular moving to structured logging in some form, but that could probably use its own issue. |
Cool, thanks. No rush on my part for structured logging, but would be great to get this specific issue fixed. :-) |
After adding the TTYPath I get output like
I am guessing this is due to the color sequences in the log output. If possible, it would be great to avoid these as well (or make optional via commandline flag) |
Opened #237 to discuss future logging improvements including structured logging |
@mdyring yeah, the colors should be gated on TTY detection (and/or an environment variable ala |
As a note to self (or other in similar situation), |
I have just run into this same issue, thanks for reporting. |
I'm planning on doing another KMS release soon which will address this. Stay tuned! |
This should be close to the final prerelease, and addresses a number of issues: - Better command-line option parsing UX - Improved logging subsystem - Eliminates many unnecessary dependencies
This should be close to the final prerelease, and addresses a number of issues: - Better command-line option parsing UX - Improved logging subsystem - Eliminates many unnecessary dependencies
Upgrade to abscissa v0.1.0-pre.2 (closes #236)
Confirm this is fixed in I'll try to get a v0.6.0-rc0 out you can try soon. Just be aware v0.6.0-alpha2 has not been fully tested on a live network. |
When running tmkms as a systemd service, nothing from stdout is logged for the service.
Not sure if I am doing anything unexpected, service file below:
Would appreciate any pointers :-)
The text was updated successfully, but these errors were encountered: