Received: (at 73110) by debbugs.gnu.org; 13 Oct 2024 19:14:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 15:14:40 2024 Received: from localhost ([127.0.0.1]:55802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t0436-0006Bp-3h for submit <at> debbugs.gnu.org; Sun, 13 Oct 2024 15:14:40 -0400 Received: from thaodan.de ([185.216.177.71]:60934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1t0433-0006BX-11 for 73110 <at> debbugs.gnu.org; Sun, 13 Oct 2024 15:14:38 -0400 Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id EA066D00038; Sun, 13 Oct 2024 22:05:01 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1728846302; bh=fUJh9ueFrLTRYLeN0Bz0iDEPVjTTcSuVaAisCFf3aHU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=BnW4U8+hbTVTYnlA2uPs+4PZGSUHMwQVmRD0XUQ9oYaAMsH0voHwe0R957AsX551L iuS0uJD97p5/ez6gEbzA6SO8zfqs9HCLaOGoryQuObPuDxy7aZWsuVJiunNoDCbt+S N5gHSvRpR96SFehWHYG5HW8JDaD1sLbi11EKzREXsfNMLdhRo6p29/B35a7T3W9GM1 mI22RKE3TDgz6oumHYJAYAZvWO84Q9TjLvZhEmr6MF/Y3pIHGS+INhBjutzDrQ91Ak 8l2/t6Z8jorN5bJcof3TJQzDRHuqW3Dle0aPGrxbhV5t4ChM/NnRTWTYUr7zsbCwv9 GJRbnxCK6Cr85RP7p/uCAigXAPfu8C8bcfRbjXcC3mGseKqlkgWaBDoemU7Hpm/c+L SsddP2IruSoi/xLuq7QQKfZT78kI8q8qn3G8EOkr4Exxo09PwRDhT1fBeAU7A7Hs7F Lz1Nh1OxK/ATZffIk/olUaUksFyW0P57cW3GjqyWGmaiS9i+RwJv6+S0c9SF6sg2Ha GmFLA9l1gnNkYhIj1g8Dus/EcdqNnmAtyBFirfOHniGW2IlmOEKDM9Cec7Ww6MYKPW lI/n5yekE5rg6wSRpzewdAr3JbZJ777eKCYM8Uk4vB8AG7caPflc0eddQxWFRiio6n c1BvtApBa5Xod8YP6Q8Y2Sug= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> To: Patrick Nicodemus <gadget142@HIDDEN> Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' In-Reply-To: <CADZEZBb+=sXQkDw_XBat8GN17yaeSPQfEYAH3DvDub7Nws=jBA@HIDDEN> (Patrick Nicodemus's message of "Sun, 13 Oct 2024 11:43:06 -0400") References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> <86zfojwe6k.fsf@HIDDEN> <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@HIDDEN> <CADZEZBb+=sXQkDw_XBat8GN17yaeSPQfEYAH3DvDub7Nws=jBA@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Sun, 13 Oct 2024 22:05:01 +0300 Message-ID: <87y12resde.fsf@> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Patrick Nicodemus <gadget142@HIDDEN> writes: > Neither Eli or I proposed supporting this use case (using systemd as a > service without compiling with support for libsystemd) I didn't mean to say literally supporting but more like if there's a bug from such a use case than it shouldn't be worth investing time in. Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in bl.score.senderscore.com] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in sa-accredit.habeas.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 73110 Cc: Eli Zaretskii <eliz@HIDDEN>, 73110 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) Patrick Nicodemus <gadget142@HIDDEN> writes: > Neither Eli or I proposed supporting this use case (using systemd as a > service without compiling with support for libsystemd) I didn't mean to say literally supporting but more like if there's a bug from such a use case than it shouldn't be worth investing time in. > I think it's perfectly valid to ask the user to compile Emacs with > libsystemd support for this to work. Thus, this is a documentation bug. Now looking at the service again made find the issue I think. The service uses 'Type=3Dnotify' which means that Emacs has to tell systemd that it is ready. To quote systemd.service(5): > Behavior of notify is similar to exec; however, it is > expected that the service sends a "READY=3D1" notification > message via sd_notify(3) or an equivalent call when it has > finished starting up. systemd will proceed with starting > follow-up units after this notification message has been > sent. If this option is used, NotifyAccess=3D (see below) > should be set to open access to the notification socket > provided by systemd. If NotifyAccess=3D is missing or set to > none, it will be forcibly set to main. > Systemd is able to manage many programs on my computer without them being > compiled with a special support for libsystemd, so I do not expect to > require a special additional library to get Emacs to work if the > documentation does not mention it. It is able to but if a program opts into systemd features such as notify it has to also support them. > Chapter 40 of the manual does not indicate that running Emacs as a server > is special non-core functionality, therefore as a user I assume that if > this functionality is not working then it is broken, not that I > misconfigured it at compile time. If this is supposed to be core > functionality then the build should fail loudly if the dependencies are n= ot > found at compile time unless the user supplies the --without-libsystemd > flag. The service file would have to use another Type such as 'exec' if not compiled with libsystemd support enabled during build. > > On Sun, Oct 13, 2024, 7:26=E2=80=AFAM Bj=C3=B6rn Bidar <bjorn.bidar@thaod= an.de> wrote: > >> Eli Zaretskii <eliz@HIDDEN> writes: >> >> >> From: Patrick Nicodemus <gadget142@HIDDEN> >> >> Date: Sat, 7 Sep 2024 13:22:30 -0400 >> >> >> >> I want to run Emacs as a service and connect to it with a client. I >> >> followed the instructions here: >> >> >> >> >> https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.h= tml >> >> >> >> and ran the command >> >> systemctl --user enable emacs >> >> >> >> This apparently creates a file at >> >> ~/.config/systemd/user/default.target.wants/emacs.service >> >> For some reason emacs is not successfully communicating to systemd th= at >> >> it has launched successfully, and so systemd terminates emacs. >> > >> > According to this: >> > >> >> Configured features: >> >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ >> >> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP >> >> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TI= FF >> >> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB >> > >> > your Emacs is built without libsystemd support, which I think is >> > required for this to work? Or maybe I'm missing something. >> >> I don't know exactly if libsystemd is required for the service to work, >> I think it shouldn't however, but why? >> Why would use the systemd user service but also not built with >> libsystemd? >> Even if there's something wrong why support such as usecase? >> PS: I'm not sure about if there's a netiquette on this list but top-posting and HTML mails are usually frowned upon.=20
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at 73110) by debbugs.gnu.org; 13 Oct 2024 15:44:37 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 11:44:36 2024 Received: from localhost ([127.0.0.1]:52129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1t00lo-0001gv-AA for submit <at> debbugs.gnu.org; Sun, 13 Oct 2024 11:44:36 -0400 Received: from mail-vs1-f53.google.com ([209.85.217.53]:53316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gadget142@HIDDEN>) id 1t00ll-0001gn-JQ for 73110 <at> debbugs.gnu.org; Sun, 13 Oct 2024 11:44:34 -0400 Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-4a4864b8f98so94859137.2 for <73110 <at> debbugs.gnu.org>; Sun, 13 Oct 2024 08:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728834197; x=1729438997; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JRwULUBUZwQ0hYandxMKzVPBlSI8JC6MU3mC8SNH4lg=; b=lu3Cx0aQ7G2i9J2gg05ev3inT7zog/MzxWTWUjuGeNAJLrhPCJcvT49fBnN54wqUOJ y36NKQkZUbneasOo/UiDWNgKq614+tuiXTOJOBsnSiaUIGUAABUSdb/kmv1ETFDIjcZ/ nfIZEuc+uJf3iXuZPEw9HQatO7PfusMeZuQm3VJkgfI0UP0yqslClwxBKz3Uvmi0lBJ3 51LSy9CztCCopnybofHnsCR5/uwIG5jlWiZNKEzEm407xY58PNeKWFdL89iGDoCK5FPK Rp/r3JY/UgwS2uF3CTCEnVRh5NiqfUfFj0AwO7htIzPb55qyyUaXI6WFBY/9Zx5V8Kq3 aFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728834197; x=1729438997; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JRwULUBUZwQ0hYandxMKzVPBlSI8JC6MU3mC8SNH4lg=; b=dWO/wA9chTPS62u7vzHUTQl/pwad95UEvHdKvBu3MNU1q1KgV/2VWqTj4GIkAwx55K ydreKUbJ5Z4jS/qZ/EKLTy8P1g/O3hNeWyzGP7K2f8t1oTDQR/UPt3hCWuoiaXzCidn1 y7eaXyupFtvVZviUDDQfAc/9onZxMeFj0bVOjrcE+sMXotFiWCCFXG8+cCcmMc+SxPJY 743rCESnYauOYpACPW8pJB5XcUUJjnth7Y4vYB+xTELfUToB+JwaSOOELXBHW/rt9xwl /ZRLE4ajyEV8t90OkIJSHPTfyS2sHAkmaZj8Kow6v4WxHGv8qnoPWKKUi6SGTJR8YSAS mpYg== X-Forwarded-Encrypted: i=1; AJvYcCXkg4WvZzkanOMIHkVR9G5XHs7XNLIyJ3+OaY5Ozq0tisafA3scagvuPjIhK87OB/O0JXpRiA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw1xSF0hFuZufpkzSt8AxvyokncDYvbOXhmLvFnj7/Y2chGNz9D hF5hnUSBgOAFunhoJBza6AR90Xrk3/5n4gj1CVzVO+xRJlW2EOWnBb/1EAWQB9Ohh9UuKgveSTr 9fGbXXm39H/OinQrxzJsF4HBrreQ= X-Google-Smtp-Source: AGHT+IHxbMsOgywzuxTcMMW48nnGMRr7RkanJXblFTNU22qAv4iobtOH1IcRilLrXPpkUmLkT3N8Mzj4YmfFLLPzN78= X-Received: by 2002:a05:6102:3e92:b0:4a3:db6a:dbbf with SMTP id ada2fe7eead31-4a475f5bbd1mr3235463137.14.1728834197201; Sun, 13 Oct 2024 08:43:17 -0700 (PDT) MIME-Version: 1.0 References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> <86zfojwe6k.fsf@HIDDEN> <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@HIDDEN> In-Reply-To: <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@HIDDEN> From: Patrick Nicodemus <gadget142@HIDDEN> Date: Sun, 13 Oct 2024 11:43:06 -0400 Message-ID: <CADZEZBb+=sXQkDw_XBat8GN17yaeSPQfEYAH3DvDub7Nws=jBA@HIDDEN> Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' To: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000332aa306245d94a2" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 73110 Cc: Eli Zaretskii <eliz@HIDDEN>, 73110 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.7 (/) --000000000000332aa306245d94a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Neither Eli or I proposed supporting this use case (using systemd as a service without compiling with support for libsystemd) I think it's perfectly valid to ask the user to compile Emacs with libsystemd support for this to work. Thus, this is a documentation bug. Systemd is able to manage many programs on my computer without them being compiled with a special support for libsystemd, so I do not expect to require a special additional library to get Emacs to work if the documentation does not mention it. Chapter 40 of the manual does not indicate that running Emacs as a server is special non-core functionality, therefore as a user I assume that if this functionality is not working then it is broken, not that I misconfigured it at compile time. If this is supposed to be core functionality then the build should fail loudly if the dependencies are not found at compile time unless the user supplies the --without-libsystemd flag. Compare the chapter on images which warns the reader that external libraries must be available: https://www.gnu.org/software/emacs/manual/html_node/elisp/Image-Formats.htm= l Compare the chapter on tree sitter which alerts the reader that support for tree sitter must be compiled in: https://www.gnu.org/software/emacs//manual/html_node/elisp/Parsing-Program-= Source.html On Sun, Oct 13, 2024, 7:26=E2=80=AFAM Bj=C3=B6rn Bidar <bjorn.bidar@thaodan= .de> wrote: > Eli Zaretskii <eliz@HIDDEN> writes: > > >> From: Patrick Nicodemus <gadget142@HIDDEN> > >> Date: Sat, 7 Sep 2024 13:22:30 -0400 > >> > >> I want to run Emacs as a service and connect to it with a client. I > >> followed the instructions here: > >> > >> > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.ht= ml > >> > >> and ran the command > >> systemctl --user enable emacs > >> > >> This apparently creates a file at > >> ~/.config/systemd/user/default.target.wants/emacs.service > >> For some reason emacs is not successfully communicating to systemd tha= t > >> it has launched successfully, and so systemd terminates emacs. > > > > According to this: > > > >> Configured features: > >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > >> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP > >> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIF= F > >> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > > > your Emacs is built without libsystemd support, which I think is > > required for this to work? Or maybe I'm missing something. > > I don't know exactly if libsystemd is required for the service to work, > I think it shouldn't however, but why? > Why would use the systemd user service but also not built with > libsystemd? > Even if there's something wrong why support such as usecase? > --000000000000332aa306245d94a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><p dir=3D"ltr">Neither Eli or I proposed supporting this = use case (using systemd as a service without compiling with support for lib= systemd)<br> I think it's perfectly valid to ask the user to compile Emacs with libs= ystemd support for this to work. Thus, this is a documentation bug.</p> <p dir=3D"ltr">Systemd is able to manage many programs on my computer witho= ut them being compiled with a special support for libsystemd, so I do not e= xpect to require a special additional library to get Emacs to work if the d= ocumentation does not mention it.=C2=A0</p><p dir=3D"ltr">Chapter 40 of the= manual does not indicate that running Emacs as a server is special non-cor= e functionality, therefore as a user I assume that if this functionality is= not working then it is broken, not that I misconfigured it at compile time= . If this is supposed to be core functionality then the build should fail l= oudly if the dependencies are not found at compile time unless the user sup= plies the --without-libsystemd flag.</p><p dir=3D"ltr">Compare the chapter = on images which warns the reader that external libraries must be available:= </p><p dir=3D"ltr"><a href=3D"https://www.gnu.org/software/emacs/manual/htm= l_node/elisp/Image-Formats.html">https://www.gnu.org/software/emacs/manual/= html_node/elisp/Image-Formats.html</a></p><p dir=3D"ltr">Compare the chapte= r on tree sitter which alerts the reader that support for tree sitter must = be compiled in:</p><p dir=3D"ltr"><a href=3D"https://www.gnu.org/software/e= macs//manual/html_node/elisp/Parsing-Program-Source.html">https://www.gnu.o= rg/software/emacs//manual/html_node/elisp/Parsing-Program-Source.html</a></= p></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr= ">On Sun, Oct 13, 2024, 7:26=E2=80=AFAM Bj=C3=B6rn Bidar <<a href=3D"mai= lto:bjorn.bidar@HIDDEN">bjorn.bidar@HIDDEN</a>> wrote:<br></div>= <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex">Eli Zaretskii <<a href=3D"mailto:eliz@gnu= .org" target=3D"_blank" rel=3D"noreferrer">eliz@HIDDEN</a>> writes:<br> <br> >> From: Patrick Nicodemus <<a href=3D"mailto:gadget142@HIDDEN"= target=3D"_blank" rel=3D"noreferrer">gadget142@HIDDEN</a>><br> >> Date: Sat, 7 Sep 2024 13:22:30 -0400<br> >> <br> >> I want to run Emacs as a service and connect to it with a client. = I<br> >> followed the instructions here:<br> >> <br> >> <a href=3D"https://www.gnu.org/software/emacs/manual/html_node/ema= cs/Emacs-Server.html" rel=3D"noreferrer noreferrer" target=3D"_blank">https= ://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html</a><= br> >> <br> >> and ran the command<br> >> systemctl --user enable emacs<br> >> <br> >> This apparently creates a file at<br> >> ~/.config/systemd/user/default.target.wants/emacs.service<br> >> For some reason emacs is not successfully communicating to systemd= that<br> >> it has launched successfully, and so systemd terminates emacs.<br> ><br> > According to this:<br> ><br> >> Configured features:<br> >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ<br> >> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP= <br> >> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS= TIFF<br> >> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB<br> ><br> > your Emacs is built without libsystemd support, which I think is<br> > required for this to work?=C2=A0 Or maybe I'm missing something.<b= r> <br> I don't know exactly if libsystemd is required for the service to work,= <br> I think it shouldn't however, but why?<br> Why would use the systemd user service but also not built with<br> libsystemd?<br> Even if there's something wrong why support such as usecase?<br> </blockquote></div> --000000000000332aa306245d94a2--
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at 73110) by debbugs.gnu.org; 13 Oct 2024 11:27:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 13 07:27:46 2024 Received: from localhost ([127.0.0.1]:50405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1szwlG-00048g-2c for submit <at> debbugs.gnu.org; Sun, 13 Oct 2024 07:27:46 -0400 Received: from thaodan.de ([185.216.177.71]:51844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1szwlC-00048T-Au for 73110 <at> debbugs.gnu.org; Sun, 13 Oct 2024 07:27:44 -0400 Received: from odin (dsl-trebng12-50dc75-154.dhcp.inet.fi [80.220.117.154]) by thaodan.de (Postfix) with ESMTPSA id DC0B3D00030; Sun, 13 Oct 2024 14:26:53 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1728818814; bh=OGh2Bmoha//lxCKGZpU9HHM9stEylhggoLkOJWm2QZg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=NYp1yf7ehSP359psXvp2pdP1DZcxxH7GG+ww6kYtfkZsoXkO1uPd+0HgyU7DhLtJx ezLoKBWUbQsafGWtoiZoLMghNo1O/jWiDfOWgwmhv9ff841UEYX6ZaFPCEqpj+l6T+ R3XxPwLHx4KzKGEgY0MaPa0GhSwitlsMhzWrcqkYQlxVorK78i6GN0OH07ry5Bc5if 5N9mRc9fqkv/WmGrQXqiGfurKH8Jv8GudKNH+BlovT5yIXyae2x/ceMy8r86I0+efZ zZR/6ZFUyl4s0h3kEB6IIKo3YQUCt9QjZ/k+GPTKuaANxzsOYAhf3qLUCdvDH6vvKa /mtp5jr9YX1sMKY5+tXLY18TFoHwQaxKD+Celxz9w1420E9xRDKOmQ3FHMBnkuq8tJ 0TVIIsK9/YVwtqV7T50ECvybFrwxHUhiGfqYzAlBJkrqyTI3d6axw5RvkdgS6MZeT0 NLaxJsCKoaCCrpZFt08LE/Aa5LFNv4PP24Sd8QbkOkahaJBkE02kowHFusblTxPG4+ PdxowGrSSKVbu7oQMmLHPVr+w9YVXlbRnyx3WhTK1bVFZ1ctyTDBNEmhVLrrTBLMA2 jVQhs5ltwzOJ+5pGcuQCnjoCf3pRYHoTs/s/28XGLUGrISbdZVf21L6WW+swIvmI1b 02YyfiQDUFYg2p9pb222dXkI= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' In-Reply-To: <86zfojwe6k.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 07 Sep 2024 20:45:23 +0300") References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> <86zfojwe6k.fsf@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Sun, 13 Oct 2024 14:26:52 +0300 Message-ID: <87bjzop7k3.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> From: Patrick Nicodemus <gadget142@HIDDEN> >> Date: Sat, 7 Sep 2024 13:22:30 -0400 >> >> I want to run Emacs as a service and connect to it with a client. I >> followed the instructions here: >> [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in sa-accredit.habeas.com] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in bl.score.senderscore.com] 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: 73110 Cc: 73110 <at> debbugs.gnu.org, Patrick Nicodemus <gadget142@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) Eli Zaretskii <eliz@HIDDEN> writes: >> From: Patrick Nicodemus <gadget142@HIDDEN> >> Date: Sat, 7 Sep 2024 13:22:30 -0400 >> >> I want to run Emacs as a service and connect to it with a client. I >> followed the instructions here: >> >> https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html >> >> and ran the command >> systemctl --user enable emacs >> >> This apparently creates a file at >> ~/.config/systemd/user/default.target.wants/emacs.service >> For some reason emacs is not successfully communicating to systemd that >> it has launched successfully, and so systemd terminates emacs. > > According to this: > >> Configured features: >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ >> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP >> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF >> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > your Emacs is built without libsystemd support, which I think is > required for this to work? Or maybe I'm missing something. I don't know exactly if libsystemd is required for the service to work, I think it shouldn't however, but why? Why would use the systemd user service but also not built with libsystemd? Even if there's something wrong why support such as usecase?
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at 73110) by debbugs.gnu.org; 12 Oct 2024 12:40:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 12 08:40:17 2024 Received: from localhost ([127.0.0.1]:41678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1szbPs-0003mF-Hq for submit <at> debbugs.gnu.org; Sat, 12 Oct 2024 08:40:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1szbPX-0003k6-0U for 73110 <at> debbugs.gnu.org; Sat, 12 Oct 2024 08:39:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1szbPD-000557-Bo; Sat, 12 Oct 2024 08:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=h0E2XSbCQVvGv/824iNJjYFyzd/Cohrez5lZuf97dVQ=; b=VHfgtPIma3Zt LI0EYEJScnkLm51aZ1HiqoODjCuYi4Uz2IOnByD3eWCojEGgTNnbGcjOSFJPmRygbaZ0ScBW5q1B3 rTar/OjPCgmsKj/870xFJ/VOkhnDRpUqP6Lf/fQtTGq3LAJS14o2HanVr2EHPFIn+HgAXH2x7tnpk 5cNzKENrrwXyFWGIr6BinB9EFnGcpUZbrt0sWMw2oLUOx51h1YY3E//wCE2BYAOmEeDHrT7/aTU99 rVSxYZEtCU1sBh1WLbL0pRxfLFgLtr3rHymANUa2dOOyRqgA+8S4135z58wyw1lSoRXWqIjL3Yl8M cPlKgXAkWt/4uBF1k2Qakw==; Date: Sat, 12 Oct 2024 15:39:32 +0300 Message-Id: <86cyk5wl4r.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Patrick Nicodemus <gadget142@HIDDEN> In-Reply-To: <CADZEZBaL7ktCnB6J6sBw-NXve0R1bS=dpZ3gtObh7hdL5=6Keg@HIDDEN> (message from Patrick Nicodemus on Fri, 11 Oct 2024 12:07:04 -0400) Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> <86zfojwe6k.fsf@HIDDEN> <86zfo14bs6.fsf@HIDDEN> <CADZEZBaL7ktCnB6J6sBw-NXve0R1bS=dpZ3gtObh7hdL5=6Keg@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73110 Cc: 73110 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) [Please use Reply All to reply, to keep the bug tracker CC'ed.] > From: Patrick Nicodemus <gadget142@HIDDEN> > Date: Fri, 11 Oct 2024 12:07:04 -0400 > > Hi Eli, > Sorry for the late reply, I have been busy. > I have not yet checked that the fix works, but I think you are correct > that Emacs was not compiled with libsystemd support. > If it is indeed required for this to work, I think that it's a > documentation bug that this is not mentioned here - > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html. > This is especially important because the default behavior for the > ./configure script is to silently disable libsystemd support if the > required libraries are not found, rather than failing loudly and > requiring the user to install the appropriate systemwide packages (in > my case, as a Ubuntu user, libsystemd-dev.) Moreover there is > apparently no (documented) --with-libsystemd option one can feed to > the ./configure script to force this behavior - the flag exists in the > ./configure script but this appears to be dead code with no observable > effect. > Therefore, IMO there is no reason/hint for me as an end user to > suspect that the problem is due to my configuration script, because I > specified no options to disable compilation with libsystemd and there > is no configuration flag I can specify to guarantee that libsystemd is > enabled. > > Considering that --with-libsystemd exists in the configure script but > is not documented I assume that it was a previous feature that was > deprecated/removed, but I personally would have benefited a lot from > the configure script loudly failing when it couldn't find the > necessary libraries. I'll defer to systemd experts, assuming we have some.
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at 73110) by debbugs.gnu.org; 21 Sep 2024 09:06:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 21 05:06:00 2024 Received: from localhost ([127.0.0.1]:37135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1srw40-0001Wb-CI for submit <at> debbugs.gnu.org; Sat, 21 Sep 2024 05:06:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1srw3y-0001WO-DU for 73110 <at> debbugs.gnu.org; Sat, 21 Sep 2024 05:05:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1srw3X-0005hU-Q8; Sat, 21 Sep 2024 05:05:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QFdUOg32TEYKimo7mP2sh5d/j2QCanUCW3pGDeFL7ZE=; b=WIEG/1ijq0uD T5wgoi5Ktdkj7x3vDabwrM7M8A/2JHy9BY6L2+VWQF36do7rwLOtzWWa8zlMKW9NXyl4bDiyIERnM +2w2HMyTMS6S4e/5afPQ/zYUJLT20QDc+UUGf1vDcykxIJJXA9RzTJr/+XQIHzm+o/PA63/Q/iUq9 YHXPCVgPEfkHqIm/R9ATOgJvGHGJCo8s9JZu/IbyHADR1fThvlQfzBzslcQ4gpwnFyhzk3BZfR8bR 5wJKEhkAtSChpytzWpqtntC2ybHFwReFxp51FPFLuqqml9+mK6hUGjY+GoMgqq9Gt9fRcbFBsN3gw iIv717VjhBpHqI7C+SG16A==; Date: Sat, 21 Sep 2024 12:05:29 +0300 Message-Id: <86zfo14bs6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: gadget142@HIDDEN In-Reply-To: <86zfojwe6k.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 07 Sep 2024 20:45:23 +0300) Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> <86zfojwe6k.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73110 Cc: 73110 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Ping! Patrick, could you please respond and confirm that this issue is because of how you built your Emacs? > Cc: 73110 <at> debbugs.gnu.org > Date: Sat, 07 Sep 2024 20:45:23 +0300 > From: Eli Zaretskii <eliz@HIDDEN> > > > From: Patrick Nicodemus <gadget142@HIDDEN> > > Date: Sat, 7 Sep 2024 13:22:30 -0400 > > > > I want to run Emacs as a service and connect to it with a client. I > > followed the instructions here: > > > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html > > > > and ran the command > > systemctl --user enable emacs > > > > This apparently creates a file at > > ~/.config/systemd/user/default.target.wants/emacs.service > > > > whose contents are: > > > > [Unit] > > Description=Emacs text editor > > Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ > > > > [Service] > > Type=notify > > ExecStart=/usr/local/bin/emacs --fg-daemon > > > > # Emacs will exit with status 15 after having received SIGTERM, which > > # is the default "KillSignal" value systemd uses to stop services. > > SuccessExitStatus=15 > > > > # The location of the SSH auth socket varies by distribution, and some > > # set it from PAM, so don't override by default. > > # Environment=SSH_AUTH_SOCK=%t/keyring/ssh > > Restart=on-failure > > > > [Install] > > WantedBy=default.target > > > > The directions also say: > > (If your Emacs was installed into a non-standard location, you may need > > to copy the emacs.service file to a standard directory such as > > ~/.config/systemd/user/.) > > > > I built this emacs distribution from source and installed it using "sudo > > make install"; the executable is at /usr/local/bin/emacs, so I don't > > think it is installed in a non-standard location, and so I did not > > follow these instructions. > > > > I modified the [Service] command above to include the -Q flag for the > > purposes of this bug report. > > > > After activating the service, restarting, etc., my journalctl output is > > as follows: > > > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 1. > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183514]: > > Starting Emacs daemon. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 2. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183623]: > > Starting Emacs daemon. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 3. > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183684]: > > Starting Emacs daemon. > > > > etc., etc., every ninety seconds. > > > > For some reason emacs is not successfully communicating to systemd that > > it has launched successfully, and so systemd terminates emacs. > > According to this: > > > Configured features: > > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > > IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP > > NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > your Emacs is built without libsystemd support, which I think is > required for this to work? Or maybe I'm missing something. > > > >
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at 73110) by debbugs.gnu.org; 7 Sep 2024 17:46:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 07 13:46:13 2024 Received: from localhost ([127.0.0.1]:57578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1smzVk-0002Jg-Tw for submit <at> debbugs.gnu.org; Sat, 07 Sep 2024 13:46:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1smzVi-0002JR-Qv for 73110 <at> debbugs.gnu.org; Sat, 07 Sep 2024 13:46:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1smzVc-000050-97; Sat, 07 Sep 2024 13:46:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Dlk30ACYWy5jGH9MLnB2yzkv/iHblMwJpSAmuDY6Qwc=; b=H43dFYcAD9lO WafK8V1pJ/yATfk/JAvvmQDAasJBAFVWaqfzNfxGJcqaBv9LIMt8YBohNiCHat0/tN0eYEq9nIiUz QREpoIC0O+KpTFNMbhiFKbxnufrsGgWeD7CQOK4hg7bWD8Xno8ZGslYIeOpQBgwZ/Wcj5twaqmCC2 5nDXc7tjLpYcD/pwaYPNLvInQXoHr97MRd1R5IJJDxsn4vRaUSuC4bd81sDN+DKIgF35Zk0eDWSfu 9T827JrBLeJ7RdySP4+fni+3SRvW+b/XdgPFDpckarRHZfOPMkMvT0NM9leoTXvRVuxMq03mGFvLR c8UuHojE0CLq7JDeYFXLCA==; Date: Sat, 07 Sep 2024 20:45:23 +0300 Message-Id: <86zfojwe6k.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Patrick Nicodemus <gadget142@HIDDEN> In-Reply-To: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> (message from Patrick Nicodemus on Sat, 7 Sep 2024 13:22:30 -0400) Subject: Re: bug#73110: 29.4; emacs.service failed with result 'timeout' References: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73110 Cc: 73110 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Patrick Nicodemus <gadget142@HIDDEN> > Date: Sat, 7 Sep 2024 13:22:30 -0400 > > I want to run Emacs as a service and connect to it with a client. I > followed the instructions here: > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html > > and ran the command > systemctl --user enable emacs > > This apparently creates a file at > ~/.config/systemd/user/default.target.wants/emacs.service > > whose contents are: > > [Unit] > Description=Emacs text editor > Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ > > [Service] > Type=notify > ExecStart=/usr/local/bin/emacs --fg-daemon > > # Emacs will exit with status 15 after having received SIGTERM, which > # is the default "KillSignal" value systemd uses to stop services. > SuccessExitStatus=15 > > # The location of the SSH auth socket varies by distribution, and some > # set it from PAM, so don't override by default. > # Environment=SSH_AUTH_SOCK=%t/keyring/ssh > Restart=on-failure > > [Install] > WantedBy=default.target > > The directions also say: > (If your Emacs was installed into a non-standard location, you may need > to copy the emacs.service file to a standard directory such as > ~/.config/systemd/user/.) > > I built this emacs distribution from source and installed it using "sudo > make install"; the executable is at /usr/local/bin/emacs, so I don't > think it is installed in a non-standard location, and so I did not > follow these instructions. > > I modified the [Service] command above to include the -Q flag for the > purposes of this bug report. > > After activating the service, restarting, etc., my journalctl output is > as follows: > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: start operation timed out. Terminating. > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Failed with result 'timeout'. > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Failed to start emacs.service - Emacs text editor. > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Scheduled restart job, restart counter is at 1. > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Starting emacs.service - Emacs text editor... > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183514]: > Starting Emacs daemon. > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: start operation timed out. Terminating. > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Failed with result 'timeout'. > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Failed to start emacs.service - Emacs text editor. > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Scheduled restart job, restart counter is at 2. > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Starting emacs.service - Emacs text editor... > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183623]: > Starting Emacs daemon. > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: start operation timed out. Terminating. > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Failed with result 'timeout'. > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Failed to start emacs.service - Emacs text editor. > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > emacs.service: Scheduled restart job, restart counter is at 3. > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > Starting emacs.service - Emacs text editor... > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183684]: > Starting Emacs daemon. > > etc., etc., every ninety seconds. > > For some reason emacs is not successfully communicating to systemd that > it has launched successfully, and so systemd terminates emacs. According to this: > Configured features: > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP > NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB your Emacs is built without libsystemd support, which I think is required for this to work? Or maybe I'm missing something.
bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 7 Sep 2024 17:22:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 07 13:22:50 2024 Received: from localhost ([127.0.0.1]:57525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1smz98-0000y7-3n for submit <at> debbugs.gnu.org; Sat, 07 Sep 2024 13:22:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:38214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <gadget142@HIDDEN>) id 1smz95-0000xt-D0 for submit <at> debbugs.gnu.org; Sat, 07 Sep 2024 13:22:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <gadget142@HIDDEN>) id 1smz94-00076I-42 for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2024 13:22:46 -0400 Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <gadget142@HIDDEN>) id 1smz92-0005xH-2m for bug-gnu-emacs@HIDDEN; Sat, 07 Sep 2024 13:22:45 -0400 Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-49bd76face1so1432965137.0 for <bug-gnu-emacs@HIDDEN>; Sat, 07 Sep 2024 10:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725729761; x=1726334561; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=K9cU3IjKJ2ZtV+OxcPczdj0r93ZumBurUaarEv/5K7M=; b=QNieOuhRflXt79fI1mSPn9s+xx9OOYl37xcD4naVIYqIG2qXsIFilNuLhmh6ZmUKSH rCLq++hwcqdrEq9vJ31Ly1a0XwHTptMZ/SV1B/1aSnbXZQuAcrUS6c6b1fF8JolFNOVg jrsOM7ARTJcE/1E7umrdXVeGQKLc+SbMueS9v/gPwFm/ez9/+hEay6Lvyc3obXAhlzk1 ckZ+IM+Dc6Cj69fSBXpSZ22kDOOadHZUOf3M/+Z5CGrS1CLz7HjHaRY3SP2QdLzwXQFL 6gwRp8AqC96kTCCLYj63ePGIsWcnJvQKZLMoLCrJJRpl981ti3RdyLzF2XB4ma3LWRqV C57g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725729761; x=1726334561; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=K9cU3IjKJ2ZtV+OxcPczdj0r93ZumBurUaarEv/5K7M=; b=VZvATTPELUECsHnQ+oXvXOtA4oQabzeJyT+/hB2k4aBs29ORBZTvOVO5zJCrsrBQfS ZiBkGu03aHzbM/+5MulioaIsKmOHZWUJJyY+fKOzOI15PNjSc0WBMO/6OLek4UThUkt9 iUCrlugaOs3OVRlXqgQlsjggAPMW1z2hottuAQnb2y8ZkM7UNHK+d7PPqWwp0yYxwksl yYKa0cFkJ2n4pz5H3P7sOkBP4+Qw6fbmBeBYh0bn1YqaKb4emDAmvzFSO1cTwXo93wew mBcMRvs0BjtpuX/9M/Ic3hYwB4t9hmqfYhPIyR6CrsNNDV4JEJyM4v/4Qd4cmKvLBEhN p4Og== X-Gm-Message-State: AOJu0YzZMPTzlV5eODWE78LGDl0hZtj9HA8+G+b906hF4x9RBJNV+eIl QK7NWRHM94B0vRTre1y3gBiQJT2/wIxlKXQ+30LDUXXjBNw+az0xYoA1/iFJ9ELPMu3FL01d9Ju 8u9GPBkzQ3F2fwzk/aTZ7uvstYgFibMx/ X-Google-Smtp-Source: AGHT+IFS/l3QUgK+kqg/f4M79g9T+H5duWxHSNIgHfyE1b58Rw37f9zq7F4BX+uuT1JNCdE1xi/CKKpyZeqQvU70PlA= X-Received: by 2002:a05:6102:8025:b0:49b:c738:4a50 with SMTP id ada2fe7eead31-49bc73854damr10863573137.2.1725729761096; Sat, 07 Sep 2024 10:22:41 -0700 (PDT) MIME-Version: 1.0 From: Patrick Nicodemus <gadget142@HIDDEN> Date: Sat, 7 Sep 2024 13:22:30 -0400 Message-ID: <CADZEZBbJ9qFM4yV9ixqx1=xf8vjML2q04sXqvAkAcemWMTQAVg@HIDDEN> Subject: 29.4; emacs.service failed with result 'timeout' To: bug-gnu-emacs@HIDDEN Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=gadget142@HIDDEN; helo=mail-vs1-xe31.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) I want to run Emacs as a service and connect to it with a client. I followed the instructions here: https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html and ran the command systemctl --user enable emacs This apparently creates a file at ~/.config/systemd/user/default.target.wants/emacs.service whose contents are: [Unit] Description=Emacs text editor Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ [Service] Type=notify ExecStart=/usr/local/bin/emacs --fg-daemon # Emacs will exit with status 15 after having received SIGTERM, which # is the default "KillSignal" value systemd uses to stop services. SuccessExitStatus=15 # The location of the SSH auth socket varies by distribution, and some # set it from PAM, so don't override by default. # Environment=SSH_AUTH_SOCK=%t/keyring/ssh Restart=on-failure [Install] WantedBy=default.target The directions also say: (If your Emacs was installed into a non-standard location, you may need to copy the emacs.service file to a standard directory such as ~/.config/systemd/user/.) I built this emacs distribution from source and installed it using "sudo make install"; the executable is at /usr/local/bin/emacs, so I don't think it is installed in a non-standard location, and so I did not follow these instructions. I modified the [Service] command above to include the -Q flag for the purposes of this bug report. After activating the service, restarting, etc., my journalctl output is as follows: Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: start operation timed out. Terminating. Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Failed with result 'timeout'. Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Failed to start emacs.service - Emacs text editor. Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Scheduled restart job, restart counter is at 1. Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Starting emacs.service - Emacs text editor... Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183514]: Starting Emacs daemon. Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: start operation timed out. Terminating. Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Failed with result 'timeout'. Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Failed to start emacs.service - Emacs text editor. Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Scheduled restart job, restart counter is at 2. Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Starting emacs.service - Emacs text editor... Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183623]: Starting Emacs daemon. Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: start operation timed out. Terminating. Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Failed with result 'timeout'. Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Failed to start emacs.service - Emacs text editor. Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: emacs.service: Scheduled restart job, restart counter is at 3. Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: Starting emacs.service - Emacs text editor... Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183684]: Starting Emacs daemon. etc., etc., every ninety seconds. For some reason emacs is not successfully communicating to systemd that it has launched successfully, and so systemd terminates emacs. In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-08-30 built on patrick-ThinkPad-X1-Carbon-Gen-10 System Description: Ubuntu 24.04.1 LTS Configured using: 'configure --with-native-compilation=aot --with-tree-sitter --with-gif --with-png --with-jpeg --with-rsvg --with-tiff --with-pgtk --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr misearch multi-isearch emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77452 8067) (symbols 48 7163 0) (strings 32 19673 2120) (string-bytes 1 600176) (vectors 16 15676) (vector-slots 8 327945 14726) (floats 8 44 40) (intervals 56 233 0) (buffers 984 12))
Patrick Nicodemus <gadget142@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#73110
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.