xbianonpi / xbian

XBMC on Raspberry Pi, Bleeding Edge
https://xbian.org
GNU General Public License v3.0
294 stars 46 forks source link

How to enable logging? #862

Closed peci1 closed 5 years ago

peci1 commented 5 years ago

I have a clean image of latest Xbian on RPi 1B :

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.6 (stretch)
Release:        9.6
Codename:       stretch
Linux xbian 4.14.80+ #1 PREEMPT Tue Nov 13 15:50:56 CET 2018 armv6l GNU/Linux

I see there's no system-wide logging service enabled, like syslog, rsyslog etc. I also can't find any logging service in xbian-config. journaltctl doesn't work because systemd doesn't have PID 1. Nor does the wiki help.

What's currently the suggested way to enable system-wide logging (to get e.g. cron logs, network manager logs and so on)?

mkreisl commented 5 years ago

@peci1 I'm using rsyslog for years (logging to common log server)

sudo apt-get install rsyslog
peci1 commented 5 years ago

Thanks, that works. I just made sure logs are written to tmpfs...