I don't understand.
You added something to the file, but not between the comments?
Can you share a copy of this file / or at least a screenshot.

The comments (and the full copy of the original unit file) are actually there to make it easier when editing an override. I'd like to better understand your comments regarding the bad ergonomics. How would you make it differently?

Am 27.09.21 um 10:16 schrieb Xavier Bestel:
Ok, I didn't read the comments and just added the line I needed, and of
course it didn't work.
Sorry for the noise; the ergonomics aren't great but I should have
known better.

        Xav

Le vendredi 24 septembre 2021 à 17:43 +0200, Michael Biebl a écrit :
Control: tags -1 + moreinfo unreproducible

Am 24.09.21 um 12:05 schrieb Xavier Bestel:
Package: systemd
Version: 247.9-1
Severity: normal
File: /bin/systemctl

Dear Maintainer,

When I try to edit systemd's config:
root@dev5:~# systemctl edit systemd-logind.service
Editing "/etc/systemd/system/systemd-
logind.service.d/override.conf" canceled: temporary file is empty.

(the systemd-logind.service.d/ folder doesn't exist)

When you run that command, you should get your EDITOR started with
the
following text


### Editing /etc/systemd/system/systemd-
logind.service.d/override.conf
### Anything between here and the comment below will become the new
contents of the file



### Lines below this comment will be discarded

### /lib/systemd/system/systemd-logind.service
...


If you do not actually make any changes, i.e. the file will be empty,
it
will be discarded. What kind of changes did you make betweenn the
###
###

###
lines?
Can you attach it to this bug report?

fwiw, this feature works fine here. Thus marking the bug report
accordingly.




Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to