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:
Gabriel Arazas 2022-08-31 14:37:49 +08:00
parent d95175c588
commit 767bfddead
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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";
}; };