mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-24 18:19:11 +00:00
services/yt-dlp: update config to log to journal
Apparently, it doesn't really log the errors in the journal so it can make the service failed for no reason. It can be configured to redirect it to journal.
This commit is contained in:
parent
d95175c588
commit
767bfddead
@ -157,6 +157,8 @@ in {
|
|||||||
${urls} --paths ${lib.escapeShellArg cfg.archivePath}
|
${urls} --paths ${lib.escapeShellArg cfg.archivePath}
|
||||||
'';
|
'';
|
||||||
in "${archiveScript}/bin/${scriptName}";
|
in "${archiveScript}/bin/${scriptName}";
|
||||||
|
StandardOutput = "journal";
|
||||||
|
StandardError = "journal";
|
||||||
};
|
};
|
||||||
}) cfg.jobs;
|
}) cfg.jobs;
|
||||||
|
|
||||||
|
@ -155,6 +155,8 @@ in {
|
|||||||
ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
|
StandardOutput = "journal";
|
||||||
|
StandardError = "journal";
|
||||||
SystemCallFilter = "@system-service";
|
SystemCallFilter = "@system-service";
|
||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user