Bug#800388: PathChanged triggers too early, not just when file is closed
Joachim Breitner
nomeata at debian.org
Mon Sep 28 19:27:17 BST 2015
Package: systemd
Version: 226-3
Severity: normal
Control: block 799782 by -1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
local-apt-repository ships with the following file:
$ cat /lib/systemd/system/local-apt-repository.path
[Path]
PathChanged=/srv/local-apt-repository
[Install]
WantedBy=paths.target
If a process opens a not-yet-existing file in /srv/local-apt-repository,
starts writing and eventually closes it that systemd would activate the
corresponding service only after the close – at least that is my reading
of systemd.path(5).
This can be reproduced by installing local-apt-repository, and running
$ pv -L 100 < .../some.deb > /srv/local-apt-repository/some.deb
and observing in the journal that dpkg-deb complains about an invalid
file.
Is the documentation misleading me here, or is there a bug?
If it is not a bug: Would it be possible to provide the behaviour that
was hoping for here?
Thanks,
Joachim
- -- Package-specific info:
- -- System Information:
Debian Release: stretch/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.113+nmu3
ii libacl1 2.2.52-2
ii libapparmor1 2.10-2+b1
ii libaudit1 1:2.4.4-3+b1
ii libblkid1 2.27-3
ii libc6 2.19-22
ii libcap2 1:2.24-11
ii libcap2-bin 1:2.24-11
ii libcryptsetup4 2:1.6.6-5
ii libgcrypt20 1.6.3-2
ii libkmod2 21-1
ii liblzma5 5.1.1alpha+20120614-2.1
ii libmount1 2.27-3
ii libpam0g 1.1.8-3.1
ii libseccomp2 2.2.3-2
ii libselinux1 2.3-2+b1
ii libsystemd0 226-3
ii mount 2.27-3
ii sysv-rc 2.88dsf-59.2
ii udev 226-3
ii util-linux 2.27-3
Versions of packages systemd recommends:
ii dbus 1.10.0-3
ii libpam-systemd 226-3
Versions of packages systemd suggests:
pn systemd-container <none>
ii systemd-ui 3-4
- -- Configuration Files:
/etc/systemd/journald.conf changed [not included]
/etc/systemd/logind.conf changed [not included]
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iEYEARECAAYFAlYJhoMACgkQ9ijrk0dDIGyntACcDmZJAOvNgbhuIcDyiVC3wmQb
UCMAoKnYlif/NnkNwk9ZKqNO0djHP46D
=diC5
-----END PGP SIGNATURE-----
More information about the Pkg-systemd-maintainers
mailing list