From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: make install does not setup systemd correctly Date: Sun, 15 Jul 2018 20:40:21 -0400 Message-ID: References: <20180715162748.5c9a123d@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1531701529 31720 195.159.176.226 (16 Jul 2018 00:38:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 00:38:49 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Bingo Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 02:38:45 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ferXG-00088q-Q3 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 02:38:42 +0200 Original-Received: from localhost ([::1]:48308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ferZN-0006IX-LW for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2018 20:40:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ferYu-0006IH-Bt for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 20:40:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ferYt-00034k-8t for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 20:40:24 -0400 Original-Received: from mail-oi0-x22d.google.com ([2607:f8b0:4003:c06::22d]:42356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ferYt-00034S-2L for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 20:40:23 -0400 Original-Received: by mail-oi0-x22d.google.com with SMTP id n84-v6so71707332oib.9 for ; Sun, 15 Jul 2018 17:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ssgs2XL+vM6MyiulawdSAIMbR3Ak0QCs6hcwWfWbY54=; b=PLIIvICKF56YCAGQOV1hmQ0gzLnTiTSDtbwUu100+7Y7VMzgmPpQYWlJV8Oqa65c1O cPMMU0Nv8mSmlIvZKmOgT9kQVwbXbR3tShtr8H2ax/UaLjxOxJ1TzInd1/EX1ZXhfLt0 I+zdoOaEHsFmYYLyOPEVpCyosHMNWWw6rbvxB0zPDi85PXEFPANTWrAOT5NCXbbGy6NB 6WhdUugXplWuTzhiNyF4h/RkTAdVM1FjCBCfCDpea26MVah6wU2+Wcaz3fX04In7n0qU vwvECNUUBvZoGqyPtnA+SCL4KyQc/pxtd1OnYzfPq+w170U04l6W1Uw/vDG3xMmhUIcy fE/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ssgs2XL+vM6MyiulawdSAIMbR3Ak0QCs6hcwWfWbY54=; b=i14a4KKTOftkKsBDB5TJW3yBsCz3cruMeD+M+MK4KPWbjl0fucdpDB6LvbIfPqt+Wu SplvMELM86qsej/9/mP+O15nErCVymKpLRjJnsGSRfHFhyQtvux56ruJ0MSeOZfIzU9W sQeUBiCtJiQfEKw9Nvt99Ilcco/97yKwA12M/DvMjnSeLz5C0ZNrnjtPRvQt2+bChDVE h86bVw2gE8eFCr67UjTSd9Zb+ABaOzGcvYYG/aZqpiQEdXJlus74f8LKF73oBBj/I2zB axbUtpXpQ2MVb4LlCiiAcetgJZHWNZXyIl6CP5kH1xN/eiP09o9ZO7m3EraW0l+ADPYH hUsA== X-Gm-Message-State: AOUpUlGG+OzmZ769MYEwFC4Gn2Clh+7pFPDRpG2ObT1nW5M9QbbyUpqD aRQzlzKD4dFXukK9+jZRtBDQ2AI/VuDkSrr+pOg= X-Google-Smtp-Source: AAOMgpdyKoXuWhsC1PVHBmrfPeGdXMCppnfuv/ttHNKZAlVMb6b1oC1vVFETt4cjYrM+t8AowzeatweXBRpnGvN4BJY= X-Received: by 2002:aca:eb0d:: with SMTP id j13-v6mr17123830oih.304.1531701622280; Sun, 15 Jul 2018 17:40:22 -0700 (PDT) Original-Received: by 2002:a4a:3b8d:0:0:0:0:0 with HTTP; Sun, 15 Jul 2018 17:40:21 -0700 (PDT) In-Reply-To: <20180715162748.5c9a123d@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117459 Archived-At: On 15 July 2018 at 06:58, Bingo wrote: > Hi, > On my Fedora installation, emacs 25.3 was already installed > in /usr/bin. In another > location (~/Downloads/emacs26/install/bin/emacs) , I installed emacs > 27.0 from source using ./configure, make and make install. $PATH > contains ~/Downloads/emacs26/install/ before /usr/bin. > > In this state, running "emacs --daemon" creates a emacs process, using > the binary from ~/Downloads/emacs26/install as a subprocess of systemd. As far as I understand it, when you are running systemd, every process is a subprocess of systemd, because it's the init process, so it's at the root of the process tree. > But the systemd configuration still uses the configuration info > from /lib/systemd/user/emacs.service, which is from the pre-installed > emacs 25.3. Any systemd operations end up using the binary > from /usr/bin. Maybe because it doesn't use your $PATH configuration? The emacs.service file doesn't seem to have anything version specific in it. > 1. Emacs man page, or --help does not give an obvious way to not use > systemd for its daemon. Is it supported at all ? I guess just don't use any "systemd operations"? Currently Emacs doesn't use systemd at all, except that it takes sockets passed by systemd and makes them available to the `:use-external-socket' option of `make-network-process'. > 2. If we are not making it easy to avoid systemd, let us configure it > while installing? Emacswiki says that we need to copy the included > emacs.service file to ~/.config/systemd/user/emacs.service. It seems to > help - my emacsclient has not been hanging since then. But couldn't > make install have copied this file by default ? Or used emacs.service > file from the correct place when a binary from this emacs 27.0 > installation is being run as daemon ? According to this comment in Makefile.in, it's not entirely clear where the service file should get installed. # Where the etc/emacs.service file is to be installed. # The system value (typically /usr/lib/systemd/user) can be # obtained with: pkg-config --variable=systemduserunitdir systemd # but that does not respect configure's prefix. # It is not clear where we should install this file when # prefix != /usr (or /usr/local?) (eg for non-root installs). # Other options include ~/.config/systemd/user/, # $XDG_RUNTIME_DIR/systemd/user/ # It seems the user may end up having to make a manual link... systemdunitdir=$(libdir)/systemd/user