Ross Vandegrift <rvandegr...@debian.org> writes:

> Should the systemd user unit be started by default?  The changelog indicates 
> no
> (see 1:28.1+1-4) and dh_installsystemduser is invoked with
> --no-enable.

That's correct, i.e. it shouldn't.

> But it starts on my system without (as far as I recall) me enabling
> it.
>
>
> What's the appropriate way to disable it?  `systemctl --user disable --now
> emacs.server` only lasts until I reboot.  Masking it works.
>
> I've noticed that even after disabling, status shows it's enabled:
>   $ systemctl --user disable --now emacs.service
>   $ systemctl --user status emacs.service | head -n 3
>   ○ emacs.service - Emacs text editor
>        Loaded: loaded (/usr/lib/systemd/user/emacs.service; enabled; preset: 
> enabled)
>        Active: inactive (dead) since Wed 2022-12-07 15:03:03 PST; 4s ago
>
> I don't really understand how systemd user stuff works - 
> ~/.config/systemd/user
> is empty (until masking), but I don't know if that's informative.

I suspect you're having the same problem I was, which I believe is
caused by the fact that earlier versions of the package (in untable)
didn't have --no-enable, and the auto-run behavior seems to be sticky.

I "fixed" it here by purging and reinstalling emacs-common, but I'd hope
there's a better way.  If so, I'd be happy to consider adding some notes
to a suitable /usr/share/doc file, and/or trying to automate a fix.

Though if the fix isn't simple, I might hesitate attempting to automate
it, since the problem (I hope) only existed somewhat briefly in
unstable.

Thanks for  the report, and sorry for the trouble.
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4

Reply via email to