cupsd: Log to syslog (and thus the journal)
This commit is contained in:
parent
a26e4a43f3
commit
e1318e6026
1 changed files with 3 additions and 6 deletions
|
@ -6,8 +6,6 @@ let
|
|||
|
||||
inherit (pkgs) cups;
|
||||
|
||||
logDir = "/var/log/cups";
|
||||
|
||||
cfg = config.services.printing;
|
||||
|
||||
additionalBackends = pkgs.runCommand "additional-cups-backends" { }
|
||||
|
@ -128,7 +126,6 @@ in
|
|||
preStart =
|
||||
''
|
||||
mkdir -m 0755 -p /etc/cups
|
||||
mkdir -m 0755 -p ${logDir}
|
||||
mkdir -m 0700 -p /var/cache/cups
|
||||
mkdir -m 0700 -p /var/spool/cups
|
||||
mkdir -m 0755 -p ${cfg.tempDir}
|
||||
|
@ -159,9 +156,9 @@ in
|
|||
|
||||
SetEnv PATH ${bindir}/lib/cups/filter:${bindir}/bin:${bindir}/sbin
|
||||
|
||||
AccessLog ${logDir}/access_log
|
||||
ErrorLog ${logDir}/error_log
|
||||
PageLog ${logDir}/page_log
|
||||
AccessLog syslog
|
||||
ErrorLog syslog
|
||||
PageLog syslog
|
||||
|
||||
TempDir ${cfg.tempDir}
|
||||
|
||||
|
|
Loading…
Reference in a new issue