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

Update signalk.service to use journal logging #1814

Open
Champang opened this issue Oct 22, 2024 · 2 comments
Open

Update signalk.service to use journal logging #1814

Champang opened this issue Oct 22, 2024 · 2 comments

Comments

@Champang
Copy link

When following the signalk service on a Raspberry, the following warning message appears:

/etc/systemd/system/signalk.service:5: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.

To solve this problem, you need to change the following lines in the file: replace syslog by journal.

sudo nano /etc/systemd/system/signalk.service

StandardOutput=syslog by StandardOutput=journal
StandardError=syslog by StandardError=journal

@tkurki tkurki changed the title Desirable fix for signalk.service Update signalk.service to use journal logging Oct 22, 2024
@tkurki
Copy link
Member

tkurki commented Oct 22, 2024

How backwards compatible would this be?

@Champang
Copy link
Author

Compatibility: systemd-journald is designed to be compatible with applications that use syslog. This means that messages sent to the journal via StandardOutput=journal will be accessible in the same way as those sent to syslog.

Additional Features: By using StandardOutput=journal, you benefit from additional features offered by journald, such as structured logging, easier filtering and searching of logs, and better log management in terms of performance and storage.

Configuration: Ensure that your service is configured to use systemd and that journald is active on your system. Most modern Linux distributions use systemd by default.

Testing: Not possible for me to test for all Linux OS

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

No branches or pull requests

2 participants