On systemd-246.4-1ubuntu1 the setting PathChangedGlob leads to an error. But I tried the following which seems to work correctly:
[Path] # PathExistsGlob=/var/crash/*.crash PathChanged=/var/crash
Thanks @rockrequin for the hint!
On systemd- 246.4-1ubuntu1 the setting PathChangedGlob leads to an error. But I tried the following which seems to work correctly:
[Path] /var/crash/ *.crash /var/crash
# PathExistsGlob=
PathChanged=
Thanks @rockrequin for the hint!