From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oKoiODy9SmAKQAAA0tVLHw (envelope-from ) for ; Fri, 12 Mar 2021 01:00:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eNLvMzy9SmD6GgAAB5/wlQ (envelope-from ) for ; Fri, 12 Mar 2021 01:00:44 +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 60ECD13F6A for ; Fri, 12 Mar 2021 02:00:44 +0100 (CET) Received: from localhost ([::1]:53276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKWAR-00052k-Mv for larch@yhetil.org; Thu, 11 Mar 2021 20:00:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKW9r-0004yH-RO for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43955) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKW9r-0006cT-Iz for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKW9r-0005nZ-H5 for guix-patches@gnu.org; Thu, 11 Mar 2021 20:00:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47081] [PATCH v2 5/6] 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 01:00: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.161551077222127 (code B ref 47081); Fri, 12 Mar 2021 01:00:03 +0000 Received: (at 47081) by debbugs.gnu.org; 12 Mar 2021 00:59:32 +0000 Received: from localhost ([127.0.0.1]:55494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9L-0005ki-Q0 for submit@debbugs.gnu.org; Thu, 11 Mar 2021 19:59:32 -0500 Received: from mail.zaclys.net ([178.33.93.72]:37001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKW9F-0005jg-Ix for 47081@debbugs.gnu.org; Thu, 11 Mar 2021 19:59: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 12C0xJY5011357 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 12 Mar 2021 01:59:19 +0100 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.zaclys.net 12C0xJY5011357 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=1615510760; bh=QNR2sLpriSBkopDx+jSC1Ty1bbtOvo0hd9IqEZbXn8A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mzo+EifU9bhHpr3synSsQLoNY712Z1Qs8URgKhMCrhDwd8JxHwH8rkNVRI4MZBlcB lYdS90eh1isqK0k5uxIX0wymNoNEu/4L42oV9z0CGSawL9cbPPNNPeTJi9tRkdOxnH qlKySwPT73Hd+VlSXFTcycnI/PvsYgEC41tw06cw= Date: Fri, 12 Mar 2021 01:59:14 +0100 Message-Id: <20210312005915.14100-5-lle-bout@zaclys.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210312005915.14100-1-lle-bout@zaclys.net> References: <20210312005915.14100-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=1615510844; 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=WgsDTsBTeZkAE/T5sYb0JBSEUmW7flpQq8XVJevV2EIw/TSrBcxqd8e4/ieX5vQMp+eeD9 08+KW2Eg6f7euZgclRf2p7it7iWan9fxiqukRvpoWibzSUPIFHQ6RKYTevEQ9St/0k0Ecq lkH3oCyncWOe5zCBvo1eI9sQdd1ffdzIZyYQrsEdDygsTlxonhMvghf3nbYe/tvMgg7lD0 jlLT7LVJHWGAPf8eyeO42NOD4c36s+2iO/3XarM4r94CEogi0M563A8baLt5JjVADeZART m2Q6jzIm3OQvRkWmzNwjrBiGsYLpxifk2jC5u8EKcjTECaKa6urDQ2+w22ub1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615510844; a=rsa-sha256; cv=none; b=HPJ6hWNdzShWhZ2tdYgAMghN2gE3WbxGPkPW5V2/yhmAq3lHhCNMkM9bKmm3X01/nW2NSE MY68r8aVDK9cryx1I2ktrWyf87CdO9HKC4BKq5AxCfX0jTlfRwxWcvgRYPXRIRMlhal2Fh GFF+PZ9xRBI+R0XWDHRw7Y7ftxTN9J4pPtcs8hg7tGxuX+NMGReBZvEZ1IpRYSQRwvWofq KpxhrN8iOBV0LmPXymRTISblYDufkHZU6zhrRlo/EcOTE7A5TcsBb39kW7pN6uNN4t5xHl 2zK52gygHQVFyol6gtIwYj6lQp/Rwgly05yu74RjGeMl9i2agOY4gGdNJOmMOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=zaclys.net header.s=default header.b=mzo+EifU; 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-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=mzo+EifU; 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: 60ECD13F6A X-Spam-Score: 1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: XESMpylxlqNR * 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