From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iMSELlR852A/BgAAgWs5BA (envelope-from ) for ; Fri, 09 Jul 2021 00:29:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WPpBKlR852AVVwAAB5/wlQ (envelope-from ) for ; Thu, 08 Jul 2021 22:29:40 +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 B035A15C82 for ; Fri, 9 Jul 2021 00:29:39 +0200 (CEST) Received: from localhost ([::1]:59422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1cWT-0000KT-5K for larch@yhetil.org; Thu, 08 Jul 2021 18:29:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1cW0-0000FF-BF for help-guix@gnu.org; Thu, 08 Jul 2021 18:29:04 -0400 Received: from w1.tutanota.de ([81.3.6.162]:32852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1cVu-0007Pd-J9 for help-guix@gnu.org; Thu, 08 Jul 2021 18:29:03 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 4973FFA01B5 for ; Thu, 8 Jul 2021 22:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1625783334; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender; bh=AHiMMv/S+4p9BMwKLu/an5iP5hIJycT+8p16JbKFYV4=; b=vzJhguu+yCd/t3U9rPqBwMm335U/AbJ55RZTZCvLAjJrPqNKYZVcochjPrEYrMGn 7pAgxA+vt5iqXVZNDzp0xyQIFyjDnXtnxj0I0PQgnMAXPS35rvrA6Nq4kVc81+4YxV7 lz3MH5+PprjAtkx/BiS6o8tMnCSjwyUca5CRcLt0GDQTtzROXDUSI1e13eR9RsTxve9 L3382ScJF7hyLO1OZJEliaSOAkFBTgHvpzDMQufd/Jdxqmm+J0XKCZexMS3HAEJgQxE tvFP2NmAbWDTncZU31Mu2SmnYx5Ek5bFkU+HEt6CSzIU0lLH3i+8hyFnQ0RO7daSEQZ Z7dnqj2GgA== Date: Fri, 9 Jul 2021 00:28:54 +0200 (CEST) To: Help Guix Message-ID: Subject: Auto-start service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=81.3.6.162; envelope-from=excalamus@tutanota.com; helo=w1.tutanota.de 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: excalamus@tutanota.com From: excalamus--- via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625783380; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AHiMMv/S+4p9BMwKLu/an5iP5hIJycT+8p16JbKFYV4=; b=XKIne0OfGdOqbXG1v6ukHcvFI2Jv7e3dADhvX3NDtiJrO3WtOqP1Y0ztFS90LlsjL+odVq DHxLSMuCN8OrjN3aAphiT4pGS8xF79FSTASlX9ba/t2vhepqm2UyJO2SiOnBkMUoCmhqbk +mMjPIDsKcPjYYe4TPL+dozVHd/TWYWdfJKlbkxJcOSZRCiNtZRRSoiqnMOJnHUpUC4+TA OUv4MBA1+ydVXXD7jHUqSiUNrSEvfYwrdsDd4y+F3kM7WWlovdZuSu4OxLIYnvZyCEi85l LhYagZBfLKiNzrOb/VQTSk9VWBZRqWRPFxIPokDDgvDLhRJ7JssC8wSgUrEaZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625783380; a=rsa-sha256; cv=none; b=jIwF6iIHM8FpPwkwgt5byA5cOkqN3miVdJCDsQKaQjUHhXvMJQ3KCul+SO2JenxSvnyrm6 ogNDkOjiH5XpQVFSuO7LKke4LjvAhJOFMisKeoxoh+sAU87+/KBne9Z9yErD5ylBk1BVHa 4WVM4Ka7Qsv5LubS2KKbXb/AbeDtqmzHX8A9h3qQW0HX6H5qlpL3TyDOTAkbNF0iRka2As la8OvVyKA7gECpA3R20Q/VyzeBh3RbDmvzWOolOO9yPNswviCF60DO40HqOoztDmXvkeqz SLsgOf4eCcd9I7ZzBsqRDkt/CKrMdvhpFJu3ShM6+wkdnq2Q1LOtNG4dReGaMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=vzJhguu+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tutanota.com header.s=s1 header.b=vzJhguu+; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: B035A15C82 X-Spam-Score: -2.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: eSgcfaDQbJ3f I'm setting up the Emacs daemon following a thread on the mailing list:=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 https://lists.gnu.org/archive/html/help-= guix/2019-11/msg00148.html. I have services.scm and init.scm defined.=C2=A0= I can call `shepherd -c ~/.config/shepherd/init.scm` and the service start= s.=C2=A0 I can kill the terminal and connect a client with `emacsclient -c`= .=C2=A0 Trouble is, I can't figure out how to start the service on boot. The config files I'm using are: ;; services.scm (define emacsd =C2=A0 (make =C2=A0=C2=A0=C2=A0 #:provides '(emacsd) =C2=A0=C2=A0=C2=A0 #:start (make-system-constructor "emacs --daemon") =C2=A0=C2=A0=C2=A0 #:stop (make-system-destructor "emacsclient --eval \"(ki= ll-emacs)\""))) ;; init.scm ;;; Shepherd User Services (load "/home/ahab/.config/shepherd/services.scm") (register-services =C2=A0emacsd) ;; Send shepherd into the background. (action 'shepherd 'daemonize) ;; Services to start when shepherd starts: (for-each start '(emacsd)) Based on what (shepherd) Jump Start paragraph 3 says, I'm confused about wh= y Shepard doesn't find the config files.=C2=A0 Is it because Shepherd start= s as superuser on boot? Meanwhile, I was advised to define a service in my config.=C2=A0 I'm in the= process of reading the documentation (really, figuring out how to set Geis= er up to read the documentation) so that I can understand the relevant part= s.=C2=A0 Is the config the generally recommended approach for Guix SD versu= s the $HOME/.config/shepherd directory? Surely someone else has set up an Emacs daemon service?=C2=A0 The linked th= read mentioned this being a good idea for a cookbook recipe.=C2=A0 I'd be h= appy to contribute to that as I'm confident I'm not alone in wanting an Ema= cs daemon service defined.=C2=A0=20