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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to