From patchwork Thu May 9 17:40:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 13938 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 BC46C16FDF; Thu, 9 May 2019 18:41:18 +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,UNPARSEABLE_RELAY 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 555C016FD6 for ; Thu, 9 May 2019 18:41:18 +0100 (BST) Received: from localhost ([127.0.0.1]:58641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOn2h-00044R-UB for patchwork@mira.cbaines.net; Thu, 09 May 2019 13:41:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOn2e-00042h-Pn for guix-patches@gnu.org; Thu, 09 May 2019 13:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOn2c-0008Rn-GI for guix-patches@gnu.org; Thu, 09 May 2019 13:41:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51001) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOn2U-0008Mk-1H for guix-patches@gnu.org; Thu, 09 May 2019 13:41:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hOn2T-0006tO-SH for guix-patches@gnu.org; Thu, 09 May 2019 13:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35656] [PATCH] services: mcron: Log to a file. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 May 2019 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35656 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35656@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155742364726463 (code B ref -1); Thu, 09 May 2019 17:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2019 17:40:47 +0000 Received: from localhost ([127.0.0.1]:36312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOn2C-0006sj-Ob for submit@debbugs.gnu.org; Thu, 09 May 2019 13:40:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46064) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hOn2A-0006sT-6U for submit@debbugs.gnu.org; Thu, 09 May 2019 13:40:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:45054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hOn24-0007fx-T5 for submit@debbugs.gnu.org; Thu, 09 May 2019 13:40:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOn23-0003ek-SY for guix-patches@gnu.org; Thu, 09 May 2019 13:40:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOn23-0007fT-1c for guix-patches@gnu.org; Thu, 09 May 2019 13:40:35 -0400 Received: from mira.cbaines.net ([2a01:7e00::f03c:91ff:fe69:8da9]:46598) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOn22-0007f8-S6 for guix-patches@gnu.org; Thu, 09 May 2019 13:40:34 -0400 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id B54D916FD1 for ; Thu, 9 May 2019 18:40:32 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 339344fd for ; Thu, 9 May 2019 17:40:32 +0000 (UTC) From: Christopher Baines Date: Thu, 9 May 2019 18:40:32 +0100 Message-Id: <20190509174032.28180-1-mail@cbaines.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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 This makes it easier to read the output, as it's recorded in a file. * gnu/services/mcron.scm (mcron-shepherd-services): Add #:log-file to make-forkexec-constructor. --- gnu/services/mcron.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm index 1b232b6cba..fd84589c19 100644 --- a/gnu/services/mcron.scm +++ b/gnu/services/mcron.scm @@ -121,7 +121,9 @@ files." (cons* "GUILE_AUTO_COMPILE=0" "PATH=/run/current-system/profile/bin" (remove (cut string-prefix? "PATH=" <>) - (environ))))) + (environ))) + + #:log-file "/var/log/mcron.log")) (stop #~(make-kill-destructor)) (actions