[systemd-devel] Systemd logging..
Reindl Harald
h.reindl at thelounge.net
Wed Nov 21 09:36:16 UTC 2018
Am 21.11.18 um 09:53 schrieb deepan muthusamy:
> How to log systemd service into log.txt file.
> This file should be available after system restart also.
> How to do this?
just use rsyslog a all the years before
rsyslog.conf:
$MainMsgQueueSize 100000
$WorkDirectory /var/lib/rsyslog
module(load="imjournal" StateFile="imjournal.state"
WorkAroundJournalBug="on")
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$MaxMessageSize 4096
:programname, isequal, "dhcpd" -/var/log/dhcpd.log
:programname, isequal, "dhcpd" stop
More information about the systemd-devel
mailing list