From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Moeller Newsgroups: gmane.emacs.bugs Subject: bug#16507: 24.3; systemd unit for a GNU Emacs daemon Date: Mon, 20 Jan 2014 13:34:51 +0100 Message-ID: <8738ki4ys4.fsf@geometryfactory.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390236511 10781 80.91.229.3 (20 Jan 2014 16:48:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2014 16:48:31 +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 17:48:36 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 1W5I1Q-0000nA-Hp for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 17:48:24 +0100 Original-Received: from localhost ([::1]:53427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I1Q-00029N-8D for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Jan 2014 11:48:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I1E-00022p-GB for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:48:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5I16-0003Nd-2o for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:48:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5I15-0003NZ-Vq for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:48:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W5I15-0007FN-NU for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 11:48:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Moeller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2014 16:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.139023646227779 (code B ref -1); Mon, 20 Jan 2014 16:48:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Jan 2014 16:47:42 +0000 Original-Received: from localhost ([127.0.0.1]:58546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5I0j-0007Dw-CZ for submit@debbugs.gnu.org; Mon, 20 Jan 2014 11:47:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53199) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W5E4Z-0008P2-B4 for submit@debbugs.gnu.org; Mon, 20 Jan 2014 07:35:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5E4Q-0000Qn-Ni for submit@debbugs.gnu.org; Mon, 20 Jan 2014 07:35:23 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5E4Q-0000Qh-Jz for submit@debbugs.gnu.org; Mon, 20 Jan 2014 07:35:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5E4I-00056f-6f for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 07:35:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5E49-00005n-RH for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 07:35:06 -0500 Original-Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:50329) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5E49-00005f-KH for bug-gnu-emacs@gnu.org; Mon, 20 Jan 2014 07:34:57 -0500 Original-Received: by mail-ea0-f178.google.com with SMTP id a15so1969767eae.9 for ; Mon, 20 Jan 2014 04:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=FmcueT0HX5G4XL/7RusEUGMJkew2R/utLw0d5UKVFCA=; b=oKlpxHgrdGFUTZJ/1pu94Flbqn0ySCKk8CKVMZkBqFodPeVMl2nwcHl+1uj/WLmtPF 7zj3qT4kdE7YjBQEMm0+8TC+Ipyh3GhTKIOyc01VG+Jjkkzn7rQcrP6WE31Zet9SYfZ6 6lBTC5mPiWEXsk18UmZ4Nv0EMbpHaxsglJEKbNqGe3DbuEeExn1B77QCKJOHboRA5zYI pMrt3jhbQ1Q9UGpUWyalVAUXCLlU5lEWYnHZQtbgqEtwMVrEmGcMXwsn98GYLnY11yHd n0t0ul4YE+VGW8rgctyUZyCVMb8vtAhsWjtwQa2vK4s268Mp7Xt6nBH32QEwvQ0qeTgE C1sA== X-Received: by 10.14.178.65 with SMTP id e41mr2099234eem.79.1390221296515; Mon, 20 Jan 2014 04:34:56 -0800 (PST) Original-Received: from determinist (dhcp-111-231.mpi-inf.mpg.de. [139.19.111.231]) by mx.google.com with ESMTPSA id o13sm2795430eex.19.2014.01.20.04.34.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 04:34:55 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Mon, 20 Jan 2014 11:47:40 -0500 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:83791 Archived-At: systemd provides an easy way to set-up a per-user Emacs daemon and there are several unit files floating around the web. One that works is: /etc/systemd/system/emacs@.service ---------------------------------- [Unit] Description=GNU Emacs: the extensible, self-documenting text editor [Service] Type=forking ExecStart=/usr/bin/emacs --daemon ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))" Restart=always User=%i [Install] WantedBy=multi-user.target It would be helpful to include this with the default GNU Emacs, so users don't need to maintain their own files. The above file would need some configuration through configure to set the install path correctly and there should be an option to enable or disable installing it via --with-systemd.