Subject: [PATCH] services: cups: Create /var/cache on activation.
From: "Alex Griffin" <[email-masked]>
To: [email-masked]
Date: Sun, 02 Jun 2019 21:31:36 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

I recently ran into the situation where CUPS wouldn't start because /var/cache didn't exist yet. This patch just creates /var/cache on CUPS activation.

-- 
Alex Griffin

From 4a2335d70088ad485ca2f91d5f21a4e7078fb927 Mon Sep 17 00:00:00 2001
From: Alex Griffin <[email-masked]>
Date: Sun, 2 Jun 2019 16:26:47 -0500
Subject: [PATCH] services: cups: Create /var/cache on activation.

* gnu/services/cups.scm (%cups-activation): Create /var/cache if it doesn't
exist yet.
---
 gnu/services/cups.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/services/cups.scm b/gnu/services/cups.scm
index 9125139ef3..4cdc83452f 100644
--- a/gnu/services/cups.scm
+++ b/gnu/services/cups.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Andy Wingo <[email-masked]>
 ;;; Copyright © 2017 Clément Lassieur <[email-masked]>
 ;;; Copyright © 2018 Ricardo Wurmus <[email-masked]>
+;;; Copyright © 2019 Alex Griffin <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -897,6 +898,7 @@ IPP specifications.")
           (mkdir-p/perms "/var/log/cups" user #o755)
           (mkdir-p/perms "/etc/cups" user #o755)
           (mkdir-p/perms "/etc/cups/ssl" user #o700)
+          (mkdir-p "/var/cache")
           ;; This certificate is used for HTTPS connections to the CUPS web
           ;; interface.
           (create-self-signed-certificate-if-absent
-- 
2.21.0