* emacs daemon (from master) fails as systemd service
@ 2023-11-14 15:53 Suvayu Ali
2023-11-14 15:59 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Suvayu Ali @ 2023-11-14 15:53 UTC (permalink / raw)
To: Emacs mailing list
Hi,
I've been using Emacs from master (7d42a762) for the last few months
because I wanted to try out tree-sitter. It was working fine until I
updated it today.
When I start emacs normally `emacs -nw`, it starts up without issues.
When I manually start a daemon: `emacs --fg-daemon`, and connect from
another terminal with `emacsclient -nw`, that works as well. However,
when I start emacs from systemd, it fails. I log the stdout to a
file, and it has this:
Error using execdir /opt/emacs/bin/:
emacs: /opt/emacs/bin/../native-lisp/29.1-4c106e1f/preloaded/register-80045398-5a7974d5.eln:
cannot open shared object file: No such file or directory
I checked the directory /opt/emacs/, there is no "native-lisp"
directory, but the directory is writable. So if it needs to be
generated, that's possible.
My service file looks like this (mostly same as upstream):
[Service]
Type=notify
StandardOutput=file:/tmp/emacs%U.log
StandardError=inherit
# delay to pick-up changes from `import-environment` in $HOME/.bash_profile
ExecStartPre=sleep 7
ExecStart=emacs --fg-daemon
ExecStop=emacsclient --eval "(save-some-buffers t)" \
--eval "(session-save-session)" --eval "(kill-emacs)"
# Emacs will exit with status 15 after having received SIGTERM, which
# is the default "KillSignal" value systemd uses to stop services.
SuccessExitStatus=15
Restart=on-failure
[Install]
WantedBy=default.target
Any idea what is going wrong?
Cheers,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs daemon (from master) fails as systemd service
2023-11-14 15:53 emacs daemon (from master) fails as systemd service Suvayu Ali
@ 2023-11-14 15:59 ` Eli Zaretskii
2023-11-14 16:04 ` Suvayu Ali
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2023-11-14 15:59 UTC (permalink / raw)
To: help-gnu-emacs
> From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
> Date: Tue, 14 Nov 2023 15:53:50 +0000
>
> I've been using Emacs from master (7d42a762) for the last few months
> because I wanted to try out tree-sitter. It was working fine until I
> updated it today.
>
> When I start emacs normally `emacs -nw`, it starts up without issues.
> When I manually start a daemon: `emacs --fg-daemon`, and connect from
> another terminal with `emacsclient -nw`, that works as well. However,
> when I start emacs from systemd, it fails. I log the stdout to a
> file, and it has this:
>
> Error using execdir /opt/emacs/bin/:
> emacs: /opt/emacs/bin/../native-lisp/29.1-4c106e1f/preloaded/register-80045398-5a7974d5.eln:
> cannot open shared object file: No such file or directory
If this is Emacs from the master branch, how come it looks for a .eln
file that was compiled for Emacs 29.1? Sounds like some installation
issue?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: emacs daemon (from master) fails as systemd service
2023-11-14 15:59 ` Eli Zaretskii
@ 2023-11-14 16:04 ` Suvayu Ali
0 siblings, 0 replies; 3+ messages in thread
From: Suvayu Ali @ 2023-11-14 16:04 UTC (permalink / raw)
To: help-gnu-emacs
On Tue, Nov 14, 2023 at 3:59 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
> > Date: Tue, 14 Nov 2023 15:53:50 +0000
> >
> >
> > Error using execdir /opt/emacs/bin/:
> > emacs: /opt/emacs/bin/../native-lisp/29.1-4c106e1f/preloaded/register-80045398-5a7974d5.eln:
> > cannot open shared object file: No such file or directory
>
> If this is Emacs from the master branch, how come it looks for a .eln
> file that was compiled for Emacs 29.1? Sounds like some installation
> issue?
Good catch! I'll investigate my environment. The execdir is where I
installed emacs from master, but 29.1 is my system's emacs.
Thanks a lot!
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-14 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-14 15:53 emacs daemon (from master) fails as systemd service Suvayu Ali
2023-11-14 15:59 ` Eli Zaretskii
2023-11-14 16:04 ` Suvayu Ali
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).