Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service not logging under Systemd #3

Closed
Immortalin opened this issue Sep 20, 2017 · 5 comments
Closed

Service not logging under Systemd #3

Immortalin opened this issue Sep 20, 2017 · 5 comments
Labels

Comments

@Immortalin
Copy link

Immortalin commented Sep 20, 2017

When ran on POSIX systems with SystemD, cFE's log doesn't show up on journalctl, the default logging service. It records all stdout by default. A test with a standard hello world C program on infinite loop showed that the stdout wasn't being buffered or detached. Any help would be greatly appreciated

@Immortalin
Copy link
Author

@the-other-james ?

@the-other-james
Copy link
Contributor

Hi @Immortalin,
I'm not sure what the issue is here, but maybe I'm out of my depth on this one (I am not very familiar with systemd, or logging in cFE for that matter). I'm pretty sure that logs in cFE are written to files as specified in: https://github.com/nasa/cFE/blob/master/cfe/fsw/platform_inc/cpu1/cfe_platform_cfg.h

The Linux build was originally made to enable easier testing of cFE: developers could get up and running quickly on their local machine instead of messing with a dev board. So I am not surprised if cFE does not take advantage of many features available in Linux. For example, cFE uses threads for applications instead of processes (the multi-threading model matches cFE's original targets: embedded real time operating systems like VxWorks and RTEMS).

Maybe the community site (http://coreflightsystem.org/) would be a better place to ask this question?

@EzraBrooks
Copy link

EzraBrooks commented Sep 21, 2017

Defining different logging behavior per OS should be doable via PSP/OSAL, although the current log layer isn't designed to support it. Replacing logfile write calls in certain platforms with a journal write call would be the way to do it.

@Immortalin
Copy link
Author

When ran from shell, cFE prints to stdout. Journalctl usually captures everything that goes to stdout transparently i.e. no config needed but in this case it doesn't seem to be working.

@skliper
Copy link
Contributor

skliper commented Apr 18, 2019

https://coreflightsystem.org/ has links to submit bugs or contact the cFS community for support if the issue still persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants