From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eGsFDVmNTmFQEwAAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 04:45:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yOasCFmNTmGHKwAAbx9fmQ (envelope-from ) for ; Sat, 25 Sep 2021 02:45:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CE883C4CC for ; Sat, 25 Sep 2021 04:45:44 +0200 (CEST) Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTxh9-0003DA-SD for larch@yhetil.org; Fri, 24 Sep 2021 22:45:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTxgU-0003Cz-H1 for guix-patches@gnu.org; Fri, 24 Sep 2021 22:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTxgU-00035Y-9O for guix-patches@gnu.org; Fri, 24 Sep 2021 22:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTxgU-0000N9-7h for guix-patches@gnu.org; Fri, 24 Sep 2021 22:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50794] [PATCH] gnu: Add runitor Resent-From: Stephen Paul Weber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Sep 2021 02:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50794 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50794@debbugs.gnu.org Cc: Stephen Paul Weber X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16325378871382 (code B ref -1); Sat, 25 Sep 2021 02:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Sep 2021 02:44:47 +0000 Received: from localhost ([127.0.0.1]:59947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxgE-0000MC-Qf for submit@debbugs.gnu.org; Fri, 24 Sep 2021 22:44:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:54538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTxgC-0000M5-UW for submit@debbugs.gnu.org; Fri, 24 Sep 2021 22:44:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTxgC-00039F-LE for guix-patches@gnu.org; Fri, 24 Sep 2021 22:44:44 -0400 Received: from singpolyma.net ([2607:5300:60:9e74:1000::]:49429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTxgA-0002qK-VY for guix-patches@gnu.org; Fri, 24 Sep 2021 22:44:44 -0400 Received: by singpolyma.net (Postfix, from userid 1000) id 68C814861689; Sat, 25 Sep 2021 02:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=singpolyma.net; s=iweb; t=1632537881; bh=teDzfxQdckuhXyrLNRNnU0tvRatsq7D/8RFx3JrexB0=; h=From:To:Cc:Subject:Date:From; b=J2Ux5LTY3DJiVjrLALk1D7sV9dqXtQC2whZNI3GqAKzwxLxyGld5atxpCPaGE+r48 tIv2fhh6LTmBvBfNqU0YKqloqe2xketuAS6nawhITjBQrfxZesDoAlXNAv0OY3yb4l S2H1TNOhjZm8nURXgoiMwDw0jhpNf+45Br9dcf2I= From: Stephen Paul Weber Date: Fri, 24 Sep 2021 21:44:39 -0500 Message-Id: <20210925024439.15575-1-singpolyma@singpolyma.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:5300:60:9e74:1000::; envelope-from=singpolyma@singpolyma.net; helo=singpolyma.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632537944; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=S353CeeNWW4M93z5kHO7JLu8zmrrTx9WcLFhq+3aLDY=; b=qlhLOT0NMapPe3gr/hMVCqNzsVPtQMg4AZ0th1hTKNXIR/6PvJcaP+WXunUABAUt3TdcYD hP4igTNaoL/CFe+wyec0pjH/BzcFV0z4VEB1r8kdlANE8DjILeTFbAzvO3JMK9EtLGba8m wHoq6G/3uCfwZ0Aqc7Qqry5krkkgproc76MEHCGhfaSW0pdpt04j+51o/oFnB4kcrnug8C 1NSLkbluYFnGGeFCiqmj+VgSvoMy8oIZZYrP0XxEN9rI8zAsb22P0YEEvpgeI+4DRO7MlT 1S9wsbrm3bKqogMLNZcPEhoaxzxAKoO/0hblID/TIE1ShIGB1W082sSrdsJY4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632537944; a=rsa-sha256; cv=none; b=eOOEJb7J8Hi55BMZU9uC6OINrqYqa6tlDTDn2Ydyv96wtMQUWIxZCehrWTrjWEjDHna4xa 1tMWGiQGtzSMtZz1qpi1NDTdxlf1DUoyiPBIIR6X8wIy93Z+9xJd5UOA49DAI3yr1ucCM1 YCTkz9gBivC601Ktvg0xyRw+cat+2eQFB2it640l5BNfWOPsmw/380uH3/n3qsKlJNjGGN 7adhZD/oAQX5nfBUZx7rhZhjBNNzV0T/UZPtepW8w80VtSY07JA0qtPVQeKk+0km/yTafC p2qfscmTpf6xaeiZp1kum6nJXFbJngauFIMq4LhlWVAQ2Ael7MMbwPj4PUZymA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=J2Ux5LTY; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 5.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=singpolyma.net header.s=iweb header.b=J2Ux5LTY; dmarc=fail reason="SPF not aligned (strict)" header.from=singpolyma.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CE883C4CC X-Spam-Score: 5.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: eDtUQkDSGtzq * gnu/packages/admin.scm (runitor): New variable. --- gnu/packages/admin.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 9ee371be71..1e3082d36b 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -4797,3 +4797,31 @@ setup, maintenance, supervision, or any long-running processes.") (description "Utility to convert @code{lsof} output to a graph showing FIFO and UNIX interprocess communication.") (license license:bsd-2)))) + +(define-public runitor + (package + (name "runitor") + (version "0.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bdd/runitor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vjfbyrbp5ywgzdz9j3x0qgjvnq7nw7193x8v9yy6k2cih1zsacn")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "bdd.fi/x/runitor" + #:go ,go-1.17 + #:build-flags '(,(string-append "-ldflags=-X main.Version=" version)) + #:import-path "bdd.fi/x/runitor/cmd/runitor" + #:install-source? #f)) + (home-page "https://github.com/bdd/runitor") + (synopsis "Command runner with healthchecks.io integration") + (description + "Runitor runs the supplied command, captures its output, and based on its +exit code reports successful or failed execution to +@url{https://healthchecks.io,https://healthchecks.io} or your private instance.") + (license license:bsd-0))) -- 2.20.1