[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs Daemon --- Dies silently
From: |
T.V Raman |
Subject: |
Re: Emacs Daemon --- Dies silently |
Date: |
Thu, 14 Jan 2021 13:44:26 -0800 |
I think this was luser error on my part -- I've always run emacs or
emacs --daemon under screen.
Since I was using the daemon, a few days ago I eliminated screen from
my setup -- and then forgot all about it -- I believe screen is what
was keeping the emacs alive which makes sense. I had somehow
(wrongly?) assumed that if I ran emacs --daemon, it would survive
across sessions with respect to ssh --- I was clearly wrong.
Mario Lang writes:
> "T.V Raman" <raman@google.com> writes:
>
> [...]
>
> > On the other hand emacs --daemon appears to be quitting when I logout
> > from the remote machine.
>
> Shot in the dark, but might systemd have something to do with that?
> IOW, do you run emacs --daemon via a systemd user service?
> If so, see loginctl, in particular:
>
> enable-linger [USER...], disable-linger [USER...]
> Enable/disable user lingering for one or more users.
> If enabled for a specific user, a user manager is spawned
> for the user at boot and kept around after logouts. This allows users
> who
> are not logged in to run long-running services. Takes one or more
> user names or numeric UIDs as argument. If no argument is specified,
> enables/disables lingering for the user of the session of the caller.
>
> See also KillUserProcesses= setting in logind.conf(5).
>
> --
> CYa,
> ⡍⠁⠗⠊⠕
--
♉Id: kg:/m/0285kf1 🦮♉
--
♉Id: kg:/m/0285kf1 🦮♉