FS#67718 - [emacs-nox] keeps restarting emacs.service due to notification never being received by systemd
Attached to Project:
Community Packages
Opened by Paulo F (beholder) - Tuesday, 25 August 2020, 16:57 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Wednesday, 07 October 2020, 16:18 GMT
Opened by Paulo F (beholder) - Tuesday, 25 August 2020, 16:57 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Wednesday, 07 October 2020, 16:18 GMT
|
Details
Description:
emacs-nox 27.1 does does not have libsystemd features and hence starting emacs.service through systemd repeatedly restarts due to systemd never receiving the sd_notify notification for systemd reddit discussion: https://www.reddit.com/r/archlinux/comments/ifx8ae/emacs_271_service_keeps_restarting/ the issue is that emacs-nox somehow doesn't link against -lsystemd, but the normal emacs package does. maybe we need to add "--with_libsystemd" to the configure stage in the build Steps to reproduce: 1. install emacs-nox 27.1 2. start the emacs.service as a user: systemctl --user start emacs.service 3. check the journal and verify that the service keeps restarting: journalctl --user --unit emacs.service --follow 4. verify LIBSYSTEMD is not in the system-configuration-features for emacs-nox: C-h v system-configuration-features Expected results: 1. LIBSYSTEMD should be present in the system-configuration-features for emacs-nox 2. the emacs.service should not timeout and also should not repeatedly restart the service restarts due to systemd never getting the notification and hence systemd thinks emacs failed to start Note that in 27.1, the emacs service type changed from type=simple to type=notify Also note that this bug affects emacs-nox, but not the emacs package |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Wednesday, 07 October 2020, 16:18 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in emacs-nox 27.1-2
Wednesday, 07 October 2020, 16:18 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in emacs-nox 27.1-2
systemctl --user edit emacs
and set its contents to
[Service]
Type=simple
However, this will stay in place even when the issue is addressed.
Another option is, of course, editing the package file directly. This, OTOH, will not last on version bump, if the issue is still present.
- https://github.com/archlinux/svntogit-community/commit/ea9d2070e1381b0a2f0ef4c5bee3e519e74d2211#diff-8d0411b338c83cd8cd8ad9d9db127101
feel free to close this ticket people