Skip to content

Commit

Permalink
Use magical 'none' LogFile instead of a hacky workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Dec 16, 2024
1 parent c80aa00 commit 1b24939
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/logwatch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let
Title = "${title}"\n
''
+ ''
LogFile =\nLogFile = logwatch-null\n*JournalCtl = "--output=${output} --unit=${
LogFile =\nLogFile = none\n*JournalCtl = "--output=${output} --unit=${
if unit != null then unit else "${name}.service"
}"\n' > $out/etc/logwatch/conf/services/${name}.conf
''
Expand Down Expand Up @@ -90,10 +90,6 @@ stdenvNoCC.mkDerivation {
''
mkdir -p $out/bin
sh install_logwatch.sh
# Null log necessary to be able to use journalctl
echo -e "LogFile = logwatch-null.log" > $out/etc/logwatch/conf/logfiles/logwatch-null.conf
''
+ (lib.concatMapStrings mkJournalCtlEntry journalCtlEntries);

Expand Down

0 comments on commit 1b24939

Please sign in to comment.