From e1318e60265b86fd0762261361a4fa21f0cdc773 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Sep 2013 21:04:43 +0200 Subject: [PATCH] cupsd: Log to syslog (and thus the journal) --- modules/services/printing/cupsd.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/services/printing/cupsd.nix b/modules/services/printing/cupsd.nix index 5a6b85810aaa..a01aadb760a3 100644 --- a/modules/services/printing/cupsd.nix +++ b/modules/services/printing/cupsd.nix @@ -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}