Bug 2375403 - spacenavd logs should be redirected to the systemd journal instead of syslog
Summary: spacenavd logs should be redirected to the systemd journal instead of syslog
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: spacenavd
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-29 08:51 UTC by Wren Turkal
Modified: 2025-07-13 18:41 UTC (History)
2 users (show)

Fixed In Version: spacenavd-1.3.1-1.fc43
Clone Of:
Environment:
Last Closed: 2025-07-13 18:41:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
A diff for rawhide branch in the repo at https://src.fedoraproject.org/rpms/spacenavd.git (439 bytes, patch)
2025-06-29 08:54 UTC, Wren Turkal
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources spacenavd pull-request 1 0 None None None 2025-07-13 14:31:12 UTC

Description Wren Turkal 2025-06-29 08:51:22 UTC
The spacenavd daemon log messages end up getting added to /var/log/messages instead of going to the systemd journal for the spacenavd.service unit.

The configuration in the service unit file contains this line:

> [Service]
> ...
> StandardError=syslog


The stderr logs should probably be redirected to the journal. In order to do this, I added a local service unit for spacenavd whose contents are as follows:


> [Unit]
> After=
> 
> [Service]
> Type=
> Type=exec
> ExecStart=
> ExecStart=/usr/bin/spacenavd -d -l /dev/stdout
> StandardOutput=
> StandardError=

As you can see, I removed the dep on syslog as well as redirecting the logs to stdout so that they can be captured by the journal. I think this is probably a better config in a systemd world.

Reproducible: Always

Steps to Reproduce:
1. Start spacenavd.service unit
Actual Results:
Log messages go to /var/log/messages via syslog

Expected Results:
Log messages land in the systemd journal

Comment 1 Wren Turkal 2025-06-29 08:54:15 UTC
Created attachment 2095627 [details]
A diff for rawhide branch in the repo at https://src.fedoraproject.org/rpms/spacenavd.git

Comment 2 Wren Turkal 2025-06-29 09:27:41 UTC
And updated local service unit to get rid of all the warnings that system was giving that I just noticed:

> # /etc/systemd/system/spacenavd.service.d/override.conf
> [Unit]
> After=
> 
> [Service]
> Type=exec
> PIDFile=/run/spnavd.pid
> ExecStart=
> ExecStart=/usr/bin/spacenavd -d -l /dev/stdout
> StandardError=journal

The previously attached diff is in line with the local override.

Comment 3 Davide Cavalca 2025-07-13 14:31:12 UTC
Put up https://src.fedoraproject.org/rpms/spacenavd/pull-request/1 for this

Comment 4 Fedora Update System 2025-07-13 18:38:25 UTC
FEDORA-2025-bbf9786307 (spacenavd-1.3.1-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bbf9786307

Comment 5 Fedora Update System 2025-07-13 18:41:46 UTC
FEDORA-2025-bbf9786307 (spacenavd-1.3.1-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.