cupsd: Log to syslog (and thus the journal)

This commit is contained in:
Eelco Dolstra 2013-09-26 21:04:43 +02:00
parent a26e4a43f3
commit e1318e6026

View file

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