From patchwork Sun Jun 2 21:31:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alex Griffin X-Patchwork-Id: 14204 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 586BF17084; Sun, 2 Jun 2019 22:34:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 097DB17081 for ; Sun, 2 Jun 2019 22:34:08 +0100 (BST) Received: from localhost ([127.0.0.1]:53462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXY7D-0001Tn-Ll for patchwork@mira.cbaines.net; Sun, 02 Jun 2019 17:34:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXY7B-0001TV-Iu for guix-patches@gnu.org; Sun, 02 Jun 2019 17:34:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXY79-0006tM-NO for guix-patches@gnu.org; Sun, 02 Jun 2019 17:34:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hXY78-0006sG-G6 for guix-patches@gnu.org; Sun, 02 Jun 2019 17:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hXY78-0001Yu-A1 for guix-patches@gnu.org; Sun, 02 Jun 2019 17:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#36060] [PATCH] services: cups: Create /var/cache on activation. Resent-From: "Alex Griffin" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jun 2019 21:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36060 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 36060@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15595112395993 (code B ref -1); Sun, 02 Jun 2019 21:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jun 2019 21:33:59 +0000 Received: from localhost ([127.0.0.1]:41017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXY71-0001YV-Gn for submit@debbugs.gnu.org; Sun, 02 Jun 2019 17:33:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42965) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hXY6y-0001YH-FG for submit@debbugs.gnu.org; Sun, 02 Jun 2019 17:33:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:47265) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXY6t-0006hX-9M for submit@debbugs.gnu.org; Sun, 02 Jun 2019 17:33:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hXY6s-0001Sn-3n for guix-patches@gnu.org; Sun, 02 Jun 2019 17:33:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hXY6r-0006fl-2q for guix-patches@gnu.org; Sun, 02 Jun 2019 17:33:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:54413) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hXY6q-0006e5-JX for guix-patches@gnu.org; Sun, 02 Jun 2019 17:33:45 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A868B2099D for ; Sun, 2 Jun 2019 17:33:42 -0400 (EDT) Received: from imap6 ([10.202.2.56]) by compute6.internal (MEProxy); Sun, 02 Jun 2019 17:33:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajgrf.com; h= mime-version:message-id:date:from:to:subject:content-type; s= fm3; bh=5YPHY9mTHY8BWA14BvhNeuUjEtbLEs1K+0PUKjONrFU=; b=j7WIwRw0 JnfOwfr2z4v0hp//TGF51vv7BV0ADoEl2WDO081Q9zFWleNY9r5amBmnThYRTVcm PCikaHIhXeeJrgAlLO41uJAgREL5U6e5O4HgOg21jJAkzMJyK2wTHOQaI3qVcCsy 56cdp10KVwJ+ggv9vcMWZazLyIOAmtDqE3zb1S7ijLNM/yGjHgsXqgNtmPX/njHz RCbO9LKO2QjDIzgiKNJeQ7TAR7Jxj/d5IVWAs6h0bBAPomRbkIJCbAe900RwW0OI tdS7C/jQTlo8sqdd9olYp2X3xf/egslx2imVUsJ9WraRx/FHZtvhaVk+3X3Kpi6R 6a2nW9TbcbFMXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=5YPHY9mTHY8BWA14BvhNeuUjEtbLE s1K+0PUKjONrFU=; b=KjSzZg1RtKvaZuKikFYq6nTZdXhUgTia2X3MLOBE2nsXK bFGgEnXt2mwiBEVHAi3EdGLRkwNm2ohWNRjAWYMAH0OeRX4O7AujpABYxPbDP/Js 85aAUwWWLOVYszKkB+0UgpqIoWiNFaREYRN9Dx0tf4Abc3IQvUioHIgwC84fR18N jyfnNqF4NeQyc7XOA9BgD9qLMrD6pllbq52BdcOshtRR5ITAfhiWfZ6zfBwKpKah inwV8ruJxia3Cy/NonobPBNt099tr52medf0t9kcbBBEWjvlSddZxvt6de8q7J6L 61UGAoqr4uteDf9mzEMDEMUNUTwq5cp+wrZKsP8bA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudefhedgudeihecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkfffhvffutgesmhdtre erreertdenucfhrhhomhepfdetlhgvgicuifhrihhffhhinhdfuceorgesrghjghhrfhdr tghomheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrsegrjhhgrhhfrdgtohhmnecuve hluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0AC321400A0; Sun, 2 Jun 2019 17:33:42 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-555-g49357e1-fmstable-20190528v2 Mime-Version: 1.0 Message-Id: <573c52c2-ec82-44ff-b543-af3be78e877b@www.fastmail.com> Date: Sun, 02 Jun 2019 21:31:36 +0000 From: "Alex Griffin" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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. From 4a2335d70088ad485ca2f91d5f21a4e7078fb927 Mon Sep 17 00:00:00 2001 From: Alex Griffin 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 ;;; Copyright © 2017 Clément Lassieur ;;; Copyright © 2018 Ricardo Wurmus +;;; Copyright © 2019 Alex Griffin ;;; ;;; 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