You are not logged in.

#1 2024-02-20 18:35:06

avidseeker
Member
Registered: 2022-09-06
Posts: 68
Website

xinitrc logging

User dbus services in ~/.local/share/dbus-1/services and user units in ~/.config/systemd/user/ have their logs neatly recorded by Systemd.

However, for manually started programs in ~/.xinitrc, the user has the choice to redirect output to any file.

1. Is there a convention for the location of saving logs? I'd guess it should be $XDG_STATE_HOME/program_name/log.log or $XDG_STATE_HOME/program_name.log?
2. Is it possible to pipe the output somehow to systemd?
3. If not, then is there a way to save these logs to RAM instead of disk?

Offline

#2 2024-02-20 20:26:50

Tarqi
Member
From: Ixtlan
Registered: 2012-11-27
Posts: 180
Website

Re: xinitrc logging

You can use logger for piping into the system log.


Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse

Offline

Board footer

Powered by FluxBB