[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/5] Add systemd socket launching support.

From: Matthew Leach
Subject: Re: [PATCH 0/5] Add systemd socket launching support.
Date: Sun, 27 Mar 2016 19:16:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi Mark,

Mark Oteiza <address@hidden> writes:

> Matthew Leach <address@hidden> 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.


Attachment: emacs.service
Description: Binary data

Attachment: .kill-emacs.sh
Description: Bourne shell script

reply via email to

[Prev in Thread] Current Thread [Next in Thread]