On 20/06/2019 18.14, Dave Howorth wrote:
On Thu, 20 Jun 2019 17:55:53 +0200 Mathias Homann <Mathias.Homann@opensuse.org> wrote:
It's editor related - happens to me too, my $EDITOR and $VISUAL point at /usr/bin/joe
Yup.
$ sudo EDITOR=/usr/bin/jstar systemctl edit --system apache2 $ ls -la /etc/systemd/system/apache2.service.d/ total 8 drwxr-xr-x 1 root root 90 Jun 20 17:12 ./ drwxr-xr-x 1 root root 1622 Jun 20 15:31 ../ -rw-r--r-- 1 root root 27 Jun 20 17:12 override.conf -rw-r--r-- 1 root root 10 Jun 20 15:31 .#override.conf3934306d53707dd5~
So not new but definitely editor-related
Try another editor that creates backups. The problem will be there. There are three solutions: create the temporary file on a temporary directory, such as /tmp, edit then move to final destination. This is what what crontab does. Make the call to the EDITOR in some manner that disables backups - but this will affect any other use of EDITOR by other calls. Disable edit file backup altogether in joe - again, this affects other jobs. The first one I think is better, and that lands it at systemd table. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)