From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Leach Newsgroups: gmane.emacs.devel Subject: Re: [PATCH 0/5] Add systemd socket launching support. Date: Sun, 27 Mar 2016 19:16:10 +0100 Message-ID: <877fgnpz11.fsf@mattleach.net> References: <1459027002-13215-1-git-send-email-matthew@mattleach.net> <20160327004758.GD3061@acm.fritz.box> <87d1qgxqhe.fsf@mattleach.net> <874mbrc44p.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1459102603 6681 80.91.229.3 (27 Mar 2016 18:16:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Mar 2016 18:16:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 27 20:16:34 2016 Return-path: Envelope-to: ged-emacs-devel@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 1akFEn-0000KX-4x for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2016 20:16:33 +0200 Original-Received: from localhost ([::1]:36926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akFEm-000508-1S for ged-emacs-devel@m.gmane.org; Sun, 27 Mar 2016 14:16:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akFEY-0004zz-JI for emacs-devel@gnu.org; Sun, 27 Mar 2016 14:16:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akFEV-0007H7-Dp for emacs-devel@gnu.org; Sun, 27 Mar 2016 14:16:18 -0400 Original-Received: from mx0.mattleach.net ([176.58.118.143]:53616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akFEV-0007H3-82 for emacs-devel@gnu.org; Sun, 27 Mar 2016 14:16:15 -0400 Original-Received: by mx0.mattleach.net (Postfix, from userid 99) id D5DC96222F; Sun, 27 Mar 2016 19:16:14 +0100 (BST) Original-Received: from spline.mattleach.net (host81-159-23-200.range81-159.btcentralplus.com [81.159.23.200]) by mx0.mattleach.net (Postfix) with ESMTPSA id 8F26962226; Sun, 27 Mar 2016 19:16:10 +0100 (BST) In-Reply-To: <874mbrc44p.fsf@udel.edu> (Mark Oteiza's message of "Sun, 27 Mar 2016 11:49:42 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 176.58.118.143 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202301 Archived-At: --=-=-= Content-Type: text/plain Hi Mark, Mark Oteiza writes: > Matthew Leach writes: >> Currently, I start emacs --daemon upon login of my user and this can >> delay the login process by a few seconds as Emacs initialises. The idea >> behind socket activation is that, systemd knows about the socket's >> existence and won't unmount any file-systems where the socket resides >> until the daemon has shut down, this is causing a race condition on >> reboot for me. Also, allows the start of emacs --daemon to be on-demand >> and so there is less of a delay at login. > > Out of curiosity, how are you starting it? I just fork it off with > `emacs --daemon &' and so don't have this problem. Attached is my user's emacs.service file and my .kill-emacs.sh. The sh file is needed for an unrelated issue, namely that emacsclient exists before the server is shut down and as far as systemd is concerned, once ExecStop has completed the daemon should be shut down. If it is not, the default behaviour is to send it SIGKILL. Thanks, -- Matt --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=emacs.service Content-Transfer-Encoding: base64 W1VuaXRdCkRlc2NyaXB0aW9uPUVtYWNzOiB0aGUgZXh0ZW5zaWJsZSwgc2VsZi1kb2N1bWVudGlu ZyB0ZXh0IGVkaXRvcgoKW1NlcnZpY2VdClR5cGU9Zm9ya2luZwpFeGVjU3RhcnQ9L3Vzci9sb2Nh bC9iaW4vZW1hY3MgLS1kYWVtb24KRXhlY1N0b3A9L2hvbWUvbWF0dGhldy8ua2lsbC1lbWFjcy5z aApSZXN0YXJ0PWFsd2F5cwoKW0luc3RhbGxdCldhbnRlZEJ5PWRlZmF1bHQudGFyZ2V0Cg== --=-=-= Content-Type: application/x-sh Content-Disposition: attachment; filename=.kill-emacs.sh Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKClBJRD0kKHBncmVwIC1mICJlbWFjcyAtLWRhZW1vbiIgfCBoZWFkIC1uIDEp OwplbWFjc2NsaWVudCAtLWV2YWwgIihraWxsLWVtYWNzIDApIgoKd2hpbGUgW1sgKCAtZCAvcHJv Yy8kUElEICkgJiYgKCAteiBgZ3JlcCB6b21iaWUgL3Byb2MvJFBJRC9zdGF0dXNgICkgXV07IGRv CiAgICBzbGVlcCAwLjEKZG9uZQo= --=-=-=--