Re: Systemd logging..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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


_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux