From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bingo Newsgroups: gmane.emacs.help Subject: make install does not setup systemd correctly Date: Sun, 15 Jul 2018 16:28:04 +0530 Message-ID: <20180715162748.5c9a123d@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1531651314 31923 195.159.176.226 (15 Jul 2018 10:41:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2018 10:41:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 15 12:41:50 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 1feeTN-0008CA-GI for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2018 12:41:49 +0200 Original-Received: from localhost ([::1]:45128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feeVU-0001yP-Fx for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Jul 2018 06:44:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1feeV5-0001yF-DN for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 06:43:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1feeV1-00064t-9v for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 06:43:35 -0400 Original-Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]:40986) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1feeV1-000641-2x for help-gnu-emacs@gnu.org; Sun, 15 Jul 2018 06:43:31 -0400 Original-Received: by mail-pg1-x533.google.com with SMTP id z8-v6so4969971pgu.8 for ; Sun, 15 Jul 2018 03:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=We0NvJky5Vn4oj0rToUY2+DZXYdosuXr53a/rTst7a8=; b=DwhmamT9exquTJ9jioh7Lc/fNTHXXqOmMnVkd8Vl3E8Oki6L0lqAD8+OPM8WztoPZw m838dJleVnyd0G4a/EyKZfaXz4nZ5BPFh9GMu2+MHM65XSh2HJ75UHJExY7vcvyURUzc FYcb45yBsKicpbY5tHcO8uVqD8CO4TInRotE4lmQ328T/Dna2Um8W3ENwr7VvIyWhpaE 3K/7Eh/cSzBqMqcJu5KFDk5WwGQtfYRdmggqLpr85OmeG4C97XunCf7ztkCYVZ46osa3 mupmc81mG71lDtdH2F6onGOlwVK/idXvWCxE/HhG5GtaotlCfxrauXVDuzVIBfLQ4zfL 8qJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-transfer-encoding; bh=We0NvJky5Vn4oj0rToUY2+DZXYdosuXr53a/rTst7a8=; b=j1r33oEfwPzPhGnLDEqvvDd8RZqOfO2YW1REQJ8zDQrd9k5z+DC5HByjRgf5sOjZ7I fBnnqg1KuxNiOk3rwMwNSwdKif7o4uiOyYDhnXL1tQLqvxC3GNunplzGiVUtoVHCxvpL 7qcUaxdzVl2PimlW2dsbAt2+E/z+pO3VfpSSZ8duXiKndT2gRNopVIWbNh+0831XA4vN ZtVDqi+tFsIxIY7SpBaRg5XS+TCp/zz850vM/XOk+2yIxRTnj0Gshlbq4jbNMA7DaERC 16DpkKmz3B3X1KvdkuvYmJyn5rymXVbk8atUaZfI8RZhQ3XTZ7MzqE5Lq05l+EffgFaa K8SA== X-Gm-Message-State: AOUpUlH47+tqnsD+rs8X9aU36s9bfYfjbXWh4rQv0xb0KTmwUMGDEdYp PtLy11o2oYAH3goynnSMrRFtog== X-Google-Smtp-Source: AAOMgpcCzAM5eAJHspjjc8VgsVgqtnFllwG7nsnNAoulUAAhTJf3QYaYbTuJgnhvrQOKxFW/RumO7g== X-Received: by 2002:a63:5758:: with SMTP id h24-v6mr11955523pgm.432.1531651409479; Sun, 15 Jul 2018 03:43:29 -0700 (PDT) Original-Received: from localhost ([122.171.235.54]) by smtp.gmail.com with ESMTPSA id u17-v6sm94938279pfa.176.2018.07.15.03.43.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Jul 2018 03:43:29 -0700 (PDT) X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::533 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:117453 Archived-At: 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. 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. This is confirmed using ================================= systemctl --user status emacs.service emacs.service - Emacs text editor Loaded: loaded (/usr/bin/emacs; disabled; vendor preset: enabled) ================================= I was experiencing emacsclient hanging sometimes. I have not sufficiently debugged that yet, but it seems wrong to use /usr/bin binaries of 25.3 to handle emacs daemon process of 27.0 Effectively, I have 2 questions / problems : 1. Emacs man page, or --help does not give an obvious way to not use systemd for its daemon. Is it supported at all ? 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 ? thanks