From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#16507: 24.3; systemd unit for a GNU Emacs daemon Date: Mon, 20 Jan 2014 17:36:13 -0500 Message-ID: <87eh422sde.fsf@holos.localdomain> References: <8738ki4ys4.fsf@geometryfactory.com> <87sisio57d.fsf@flea.lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390257435 1902 80.91.229.3 (20 Jan 2014 22:37:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 22:37:15 +0000 (UTC) To: 16507@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 20 23:37:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5NT5-0002qt-57 for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 23:37:19 +0100 Original-Received: from localhost ([::1]:54883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NT4-0006HY-MC for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 17:37:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NSv-0006GZ-BA for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:37:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5NSo-0008F0-Ov for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:37:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NSo-0008Ep-LK for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W5NSo-0002Gr-9M for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2014 22:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13902573978685 (code B ref -1); Mon, 20 Jan 2014 22:37:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2014 22:36:37 +0000 Original-Received: from localhost ([127.0.0.1]:58788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5NSO-0002G0-NU for submit@debbugs.gnu.org; Mon, 20 Jan 2014 17:36:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58089) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5NSM-0002Fs-S2 for submit@debbugs.gnu.org; Mon, 20 Jan 2014 17:36:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5NSF-00083t-Tp for submit@debbugs.gnu.org; Mon, 20 Jan 2014 17:36:34 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36449) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NSF-00083o-QM for submit@debbugs.gnu.org; Mon, 20 Jan 2014 17:36:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NS9-0006FG-Uq for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:36:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5NS4-00080l-4g for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:36:21 -0500 Original-Received: from mail-qa0-f54.google.com ([209.85.216.54]:59255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5NS4-00080Z-11 for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 17:36:16 -0500 Original-Received: by mail-qa0-f54.google.com with SMTP id i13so5916270qae.41 for ; Mon, 20 Jan 2014 14:36:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=Nk4l7e9BgM4FInP9hh96yqOIaI+hjF1XeCXFWmySow0=; b=RCINVPf4lO9jOcJslgJ3bsOOkhp5jyiqYMNY2huKqgH+vtI5fYf5RYRWUjlnwiVz3X LuJ3opkdobEtKeVXnqEuwGjPLkOiiIX35V3KwRoo7A0B4+8U3igImpi9i3LQHMIaUa6M dhFo/kkWHt9qERuYV2Jjx6onRUi7iDvrvjZb+Rj0fVXbf/mdcNPu1jUKcs2PQJIjy6LP Sq9FiBrmYWpZ1x6P9+YM1N3v9jx0NklkGc2DtnTJvoalXjP5hgSkrfCVl/ASWbhamvdO xmnAJjuI70EpYK3JY3wpJ6Zmh9mY5esQE8CS3FDrekd9RQtBt3kQke6xNaB663dpnSA/ 7oew== X-Gm-Message-State: ALoCoQn4ofDx7CxDOUaLyEzJQXSkypvGbjb4tT6hFnjmlxF9Jh45Sr1NC4TZ5bh3zl9Srrfa2pIk X-Received: by 10.224.88.3 with SMTP id y3mr32273737qal.80.1390257375026; Mon, 20 Jan 2014 14:36:15 -0800 (PST) Original-Received: from holos.localdomain (wifi-roaming-128-4-116-34.nss.udel.edu. [128.4.116.34]) by mx.google.com with ESMTPSA id 67sm1345526qgr.15.2014.01.20.14.36.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 14:36:14 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 20 Jan 2014 15:25:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83824 Archived-At: Stefan Monnier writes: >> I would like that as part of the package, even if 95% of users never >> need it. The 5% that do will appreciate the convenience. > > I don't see any problem with adding such a file. > I guess it would go in `etc'? > > > Stefan Units of installed packages go in lib, per systemd.unit(5) The addition of a user unit should also be considered. Here is an example: [Unit] Description=GNU Emacs daemon Documentation=man:emacs(1) info:Emacs [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)" [Install] WantedBy=default.target