From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id vD2XDau8SmCMPgAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 00:58:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +OLVCKu8SmCTIQAA1q6Kng (envelope-from ) for ; Fri, 12 Mar 2021 00:58:19 +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 D378513EF2 for ; Fri, 12 Mar 2021 01:58:18 +0100 (CET) Received: from localhost ([::1]:51914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKW89-0004Hk-W7 for larch@yhetil.org; Thu, 11 Mar 2021 19:58:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW7v-0004Fq-QW for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43932) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW7v-0005ca-IL for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW7v-0005hU-HP for guix-patches@gnu.org; Thu, 11 Mar 2021 19:58:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH 4/5] services: Remove mongodb service. Resent-From: =?UTF-8?Q?L=C3=A9o?= Le Bouter Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Mar 2021 00:58:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47081 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47081@debbugs.gnu.org Cc: =?UTF-8?Q?L=C3=A9o?= Le Bouter Received: via spool by 47081-submit@debbugs.gnu.org id=B47081.161551064821841 (code B ref 47081); Fri, 12 Mar 2021 00:58:03 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:57:28 +0000 Received: from localhost ([127.0.0.1]:55473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7M-0005g8-CJ for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:57:28 -0500 Received: from mail.zaclys.net ([178.33.93.72]:36611) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW7K-0005fI-38 for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:57:26 -0500 Received: from localhost.localdomain (82-64-145-38.subs.proxad.net [82.64.145.38]) (authenticated bits=0) by mail.zaclys.net (8.14.7/8.14.7) with ESMTP id 12C0vJru011211 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:57:20 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0vJru011211 Authentication-Results: mail.zaclys.net; spf=fail smtp.mailfrom=lle-bout@zaclys.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zaclys.net; s=default; t=1615510640; bh=QNR2sLpriSBkopDx+jSC1Ty1bbtOvo0hd9IqEZbXn8A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SPfx/wKqc4LH8j+5IHL2XPmMpY0AphinCjK8HpKvcwIE/x1U1chc+piOnj2OYd+WO yKhbAYPvrJxVS027C5blStiRGfBgwrUEvNp69xDQV1BE0Al1TaYk+bnwNuDN/7eAqA s5v8JOo0ka7VZTAHi4PkCCsuVqJHTBeZOnMJfry4= Date: Fri, 12 Mar 2021 01:57:14 +0100 Message-Id: <20210312005715.13881-4-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005715.13881-1-lle-bout@zaclys.net> References: <20210312005715.13881-1-lle-bout@zaclys.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" Reply-to: =?UTF-8?Q?L=C3=A9o?= Le Bouter X-ACL-Warn: , =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches From: =?UTF-8?Q?L=C3=A9o?= Le Bouter via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615510699; h=from:from:sender:sender:reply-to: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=x0krIuOM0TLTinKsj7yqxM/db0F5GBI135Q66OxBf4U=; b=JC3H8bikWhFsZnxbOl3X1Dpku8CWA9cMGaoydH8yaG8Ji+JDdwdtNe2ERMHt710oYVU55H tysQ95OT2XXHz4DQ332/J4PhcScHsYdWjSsvTCozdaf/jIGuAW2sSzFckea5DJ5kZeo38a 0JvQjOHsEsl3/YHAYxqHx25if2khgAa/P+KeHbRmgbtGmtXcUPIrUX59z0cidPswrukvqS GjVl3ILyMnyjOWq9ys8iI1VI+O2XNIiyrUXREj7YO9auC3UWD6n7RX+T/eY6BqmLC4adQ3 w8jY1XNpWNgDKqDPF9yJvBjIKx57CnJ82ksz3M706J9TJ9jrlheixm5E6y40VQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510699; a=rsa-sha256; cv=none; b=HKpWtTolFGXa7XNBauh5UZaqLayJeZ/+h080NNkAmatA0Dmigv1UmRjh8fxrNui6nVfDvs bGGrZq8LI4RNBFp1EaVvLxRyiT9XZq44cxYcDhUBEVAcfvtGmeQBElh5n4Yvo25iZqX8Ff wCmOfD19EHkbWoaAbzAbJc6FbPuYuFiCYOQcGveIpCS3CTCaW0gYd5SuZkey+JBPEejV6e S4u7de3TMzhZj3Avp1nFL7bDPwhR0F241D5zIEcEVrUEMxPuNr6OPwNGEDmHuX50mf2aCl Kzh9TjmSrIxcekL0vr1V6/H5jZ0Fjx+gX0UbFq7kSRHyXvxMjbRSDJ8CME2Fyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b="SPfx/wKq"; 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: 1.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b="SPfx/wKq"; dmarc=pass (policy=none) header.from=gnu.org; 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: D378513EF2 X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: rwFjCL4BRlWR * gnu/services/databases.scm (mongodb-configuration, mongodb-configuration?, mongodb-configuration-mongodb, mongodb-configuration-config-file, mongodb-configuration-data-directory, mongodb-service-type, %default-mongodb-configuration-file, %mongodb-accounts, mongodb-activation, mongodb-shepherd-service): Remove. --- gnu/services/databases.scm | 88 -------------------------------------- 1 file changed, 88 deletions(-) diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm index 979f3dd6c8..a841e7a50e 100644 --- a/gnu/services/databases.scm +++ b/gnu/services/databases.scm @@ -79,13 +79,6 @@ memcached-configuration-udp-port memcached-configuration-additional-options - mongodb-configuration - mongodb-configuration? - mongodb-configuration-mongodb - mongodb-configuration-config-file - mongodb-configuration-data-directory - mongodb-service-type - mysql-service mysql-service-type mysql-configuration @@ -521,87 +514,6 @@ created after the PostgreSQL database is started."))) (const %memcached-accounts)))) (default-value (memcached-configuration)))) - -;;; -;;; MongoDB -;;; - -(define %default-mongodb-configuration-file - (plain-file - "mongodb.yaml" - "# GNU Guix: MongoDB default configuration file -processManagement: - pidFilePath: /var/run/mongodb/pid -storage: - dbPath: /var/lib/mongodb -")) - - -(define-record-type* - mongodb-configuration make-mongodb-configuration - mongodb-configuration? - (mongodb mongodb-configuration-mongodb - (default mongodb)) - (config-file mongodb-configuration-config-file - (default %default-mongodb-configuration-file)) - (data-directory mongodb-configuration-data-directory - (default "/var/lib/mongodb"))) - -(define %mongodb-accounts - (list (user-group (name "mongodb") (system? #t)) - (user-account - (name "mongodb") - (group "mongodb") - (system? #t) - (comment "Mongodb server user") - (home-directory "/var/lib/mongodb") - (shell (file-append shadow "/sbin/nologin"))))) - -(define mongodb-activation - (match-lambda - (($ mongodb config-file data-directory) - #~(begin - (use-modules (guix build utils)) - (let ((user (getpwnam "mongodb"))) - (for-each - (lambda (directory) - (mkdir-p directory) - (chown directory - (passwd:uid user) (passwd:gid user))) - '("/var/run/mongodb" #$data-directory))))))) - -(define mongodb-shepherd-service - (match-lambda - (($ mongodb config-file data-directory) - (shepherd-service - (provision '(mongodb)) - (documentation "Run the Mongodb daemon.") - (requirement '(user-processes loopback)) - (start #~(make-forkexec-constructor - `(,(string-append #$mongodb "/bin/mongod") - "--config" - ,#$config-file) - #:user "mongodb" - #:group "mongodb" - #:pid-file "/var/run/mongodb/pid" - #:log-file "/var/log/mongodb.log")) - (stop #~(make-kill-destructor)))))) - -(define mongodb-service-type - (service-type - (name 'mongodb) - (description "Run the MongoDB document database server.") - (extensions - (list (service-extension shepherd-root-service-type - (compose list - mongodb-shepherd-service)) - (service-extension activation-service-type - mongodb-activation) - (service-extension account-service-type - (const %mongodb-accounts)))) - (default-value - (mongodb-configuration)))) - ;;; ;;; MySQL. -- 2.30.2